Simple Hello world App using StreamLit Docker and OpenAI api
git clone https://github.com/aryan-cloud/HelloOpenAI.git
cd HelloOpenAI
install the requirements using below command in termianl
pip install -r requirements.txtConfig your openAI key
OPENAI_API_KEY=sk-xxxxxxRunning locally
streamlit run app.py
app will be open at http:://localhost:8501
Build a docker Image
docker build -t hello-openai-app .
Run the Docker container
# Option 1: Pass API key as env var
docker run -e OPENAI_API_KEY=sk-xxxxxx -p 8501:8501 hello-openai-app
# Option 2: Use .env file
docker run --env-file .env -p 8501:8501 hello-openai-app
Then visit http://localhost:8501.
see the ChromaDB.md file in this repository.