bellagiovanni/simple-language-model-app
0
Simple Language Model App (Streamlit + OpenAI)
This is a very small chat application using a language model via the OpenAI API.
1) Requirements
- Python 3.9+
- An OpenAI API key
2) Install
pip install -r requirements.txt3) Set your API key (pick ONE)
Option A (Recommended): Streamlit secrets
- Create folder:
.streamlit - Create file:
.streamlit/secrets.toml - Put:
OPENAI_API_KEY="YOUR_KEY_HERE"Option B: Environment variable
export OPENAI_API_KEY="YOUR_KEY_HERE"4) Run
streamlit run app.pyWhat to submit
- Upload the whole folder (or the provided ZIP) to your teacher's Google Drive folder.
If your teacher wants a “case study”, you can add 2–3 lines:
- Goal: build a simple LLM chat app
- Tech: Streamlit + OpenAI API
- Features: chat history + model settings
