CloudCall / app.py
vincentiusyoshuac's picture
Update app.py
c4a7f26 verified
raw
history blame contribute delete
396 Bytes
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()