https://github.com/streamlit/example-app-streamlit-codex
https://github.com/streamlit/example-app-streamlit-codex
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/streamlit/example-app-streamlit-codex
- Owner: streamlit
- License: apache-2.0
- Created: 2021-12-06T21:20:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-14T22:42:21.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T10:36:20.073Z (5 months ago)
- Language: Python
- Size: 1.32 MB
- Stars: 12
- Watchers: 9
- Forks: 9
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://share.streamlit.io/streamlit/example-app-streamlit-codex/main)
A Streamlit app that builds Streamlit apps!
### How to use our Codex app
Here are a few sample apps to get you started:

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:

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:

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!
