/example-app-streamlit-codex

Primary LanguagePythonApache License 2.0Apache-2.0

Open in Streamlit

A Streamlit app that builds Streamlit apps!

How to use our Codex app

Here are a few sample apps to get you started:

image

The text prompt is where the magic starts.

First, explain to Codex what app you’d like to create. For example, create a web app that shows Google stocks in a particular date range. When done, generate the code by clicking on the Execute button:

image

Next, tweak the settings and edit the Codex output. Once Codex generates the code, you’ll see a second prompt. Review the code and edit it if you spot any issues:

image

Happy with your prompt? It’s time to generate the code to launch your Streamlit app! I’ve used the Python exec function and this code snippet:

button3 = st.button("🎈 Execute Code")
    if button3:
        exec(output_code)Le

That’s it. Sit back, relax, and watch your app launch!

image