Spaces:
Sleeping
Sleeping
import threading | |
import uvicorn | |
import streamlit as st | |
from fastapi_app import app as fastapi_app | |
from streamlit_app import create_video_interface | |
# Run the FastAPI server in a separate thread | |
def run_fastapi(): | |
uvicorn.run(fastapi_app, host="0.0.0.0", port=7860) | |
fastapi_thread = threading.Thread(target=run_fastapi) | |
fastapi_thread.start() | |
# Run the Streamlit app | |
create_video_interface() |