Skip to content

seiching/gradioGPT

 
 

Repository files navigation

title GradioGPT
emoji 🚀
colorFrom red
colorTo orange
sdk gradio
sdk_version 3.32.0
app_file app.py
pinned false

GradioGPT

A perfect starting template for your amazing new shiny GPT application that comes with a gradio demo

gradioGPT.webm

🔥 Features

💻 Installation

將Dockerfile.example中放入你的 OPENAI_API_KEY,並更名為Dockerfile ENV OPENAI_API_KEY=

Virtual Enviroment

You can use python virtual env

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Then

cd src
gradio app.py

Using gradio is great because it gives you hot reloading

Docker

Easy peasy

docker build -t gradio-app .
docker run --rm -it -p 7860:7860 gradio-app

Then, 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 🙏

About

Easy to hack template for your next chatGPT app with Gradio and Langchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 92.6%
  • Makefile 7.4%