Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deejungx/streamlit-demo-lp
https://github.com/deejungx/streamlit-demo-lp
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/deejungx/streamlit-demo-lp
- Owner: deejungx
- Created: 2023-09-29T07:34:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T14:06:32.000Z (about 1 year ago)
- Last Synced: 2024-11-10T06:43:01.582Z (2 months ago)
- Language: Python
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🎈 Streamlit Apps
Examples for building LLM apps with Streamlit.
### Get an OpenAI API key
You can get your own OpenAI API key by following the following instructions:
1. Go to https://platform.openai.com/account/api-keys.
2. Click on the `+ Create new secret key` button.
3. Next, enter an identifier name (optional) and click on the `Create secret key` button.### Enter the OpenAI API key in Streamlit Community Cloud
To set the OpenAI API key as an environment variable in Streamlit apps, do the following:
1. At the lower right corner, click on `< Manage app` then click on the vertical "..." followed by clicking on `Settings`.
2. This brings the **App settings**, next click on the `Secrets` tab and paste the API key into the text box as follows:```sh
OPENAI_API_KEY='xxxxxxxxxx'
```## Run it locally
```sh
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
streamlit run app.py
```