Marek Rogala 🤖📊🚀 Profile picture
Building world's most advanced Shiny dashboards. 🚀 Open source for Shiny in production. Using GPT4 in practice CTO @appsilon. Loves sailing and singing. ⛵️

Mar 14, 2023, 6 tweets

#GPT4 is way better at generating code than previous versions!

See a #rstats #shiny app fully generated by GPT-4. It displays a ggplot of mtcars, uses {shiny.semantic} for UI and has some nice styling in CSS 🚀

This level was impossible to achieve in GPT3.

Here's the process🧵

I started with a simple prompt describing my expectations.

GPT-4 got much better at following instructions, but it made errors in functions it used.

It was enough to copy-paste the error message (no need even to ask it for a fix) to get a corrected version.

This took a bit of back-and-forth, but after about 5 bugfixes I got a working app!

I also asked it to make some changes in what the dropdowns did.

But the app was really plan and too white. So let's make it more polished!

That's how we were able to generate a solid starting point for a good looking Shiny app with GPT-4!

This app was fully generated by GPT4🤯

By the way, I'll be taking part in a roundtable "Building Interactive Data Applications in the ChatGPT Era" with @dgkeyes and @jfernandez__ tomorrow, during @ShinyConf (the biggest #rstats #rshiny conference, online and free). Can't wait!

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling