| title | GradioGPT |
|---|---|
| emoji | 🚀 |
| colorFrom | red |
| colorTo | orange |
| sdk | gradio |
| sdk_version | 3.32.0 |
| app_file | app.py |
| pinned | false |
A perfect starting template for your amazing new shiny GPT application that comes with a gradio demo
gradioGPT.webm
- LangChain
ChatOpenAI - Streaming
- State management so multiple users can use it
- UI with Gradio
- types and comments
將Dockerfile.example中放入你的 OPENAI_API_KEY,並更名為Dockerfile ENV OPENAI_API_KEY=
You can use python virtual env
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtThen
cd src
gradio app.pyUsing gradio is great because it gives you hot reloading
Easy peasy
docker build -t gradio-app .
docker run --rm -it -p 7860:7860 gradio-appThen, navigate to http://localhost:7860/
You can also change the python version used (defaults to 3.11) by
docker build --build-arg PYTHON_VERSION=3.9 -t gradio-app .
### 佈建到aws`
create container 名字要一樣如gradio-app
cd …
push container
aws lightsail push-container-image --service-name gradio-appt --label gradio-app --image gradio-app``
deploy container
cd gradioGPT
aws lightsail create-container-service-deployment --service-name gradio-appt --containers file://containers.json --public-endpoint file://public-endpoint.json
## 🏆 contribution
Want to contribute? Thanks a lot! Please Fork it and PR it 🙏