Spaces:
Runtime error
Runtime error
Download app.py from harshSethi/fast_chatbot: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/spaces/harshSethi/fast_chatbot/resolve/main/app.py
- Command line
-
hf download hf://spaces/harshSethi/fast_chatbot/app.py
-
curl -L -o app.py https://huggingface.co/spaces/harshSethi/fast_chatbot/resolve/main/app.py
325 Bytes
| import uvicorn | |
| import calc_fast_api | |
| import gradio_app | |
| import threading | |
| # Start FastAPI in a separate thread | |
| def start_fastapi(): | |
| uvicorn.run("calc_fast_api:app", host="0.0.0.0", port=8000) | |
| # Start FastAPI thread | |
| fastapi_thread = threading.Thread(target= start_fastapi) | |
| fastapi_thread.start() | |
| gradio_app.launch_gradio() |