Spaces:
Sleeping
Sleeping
File size: 936 Bytes
55d7511 4831035 5d0613a 2f2cbc6 9e6aa30 55d7511 05cef9e 0304edb 53b5c95 0304edb 3232df5 4831035 0304edb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
---
title: Gradio With Fastapi
emoji: ✅
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 5.6.0
app_file: app.py
pinned: false
license: mit
---
# Gradio plus FastAPI with UUID logging sessions
## Run the app in a virtual environment
1. create and activate a virtual environment
2. install the dependencies
3. execute the uvicorn webserver
```bash
# create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate
# install the project dependencies
python -m pip install pip --upgrade
python -m pip install -r requirements.txt
# execute the uvicorn webserver. In case of problem try WITHOUT the absolute path or uvicorn could not find the module
# check that env $PATH contains the current virtualenv `venv/bin` folder
# also try using a relative path, e.g. `./venv/bin/uvicorn` or reinstalling the virtualenv
# fastapi==0.110.0, uvicorn==0.27.1
uvicorn app:app --host 0.0.0.0 --port 7860 --reload
```
|