Spaces:
Sleeping
Sleeping
File size: 256 Bytes
3c75fe4 255304b 3c75fe4 255304b 3c75fe4 255304b 3c75fe4 255304b |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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() |