fast_block / app.py
harshSethi's picture
Update app.py
255304b verified
raw
history blame contribute delete
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()