Spaces:
Sleeping
Sleeping
Download app.py from harshSethi/fast_block: direct link, hf CLI and curl.
- Browser
- Download file 256 Bytes
-
https://huggingface.co/spaces/harshSethi/fast_block/resolve/main/app.py
- Command line
-
hf download hf://spaces/harshSethi/fast_block/app.py
-
curl -L -o app.py https://huggingface.co/spaces/harshSethi/fast_block/resolve/main/app.py
256 Bytes
| import uvicorn | |
| import threading | |
| import chat_fast_api | |
| import gradio_app | |
| def start_fast(): | |
| uvicorn.run("chat_fast_api:app",host="0.0.0.0",port=8000) | |
| fastapi_thread = threading.Thread(target=start_fast) | |
| fastapi_thread.start() | |
| gradio_app.start_gradio() |