Spaces:
Sleeping
Sleeping
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() |