Skip to content

aryan-cloud/HelloOpenAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloOpenAI

Simple Hello world App using StreamLit Docker and OpenAI api

Getting started

1. Clone the repo

git clone https://github.com/aryan-cloud/HelloOpenAI.git
cd HelloOpenAI

2. To run this locally

install the requirements using below command in termianl

pip install -r requirements.txt

Config your openAI key

OPENAI_API_KEY=sk-xxxxxx

Running locally

streamlit run app.py

app will be open at http:://localhost:8501

3. Docker deployment

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.

Link to Chromadb

see the ChromaDB.md file in this repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published