CoolFace
Apppublic

zOrion7/Mirror

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
run.py19 linesDownload Raw Back to root
1from fastapi import FastAPI2from mediaflow_proxy.main import app as mediaflow_app  # Import mediaflow app3import httpx4import re5import string6 7# Initialize the main FastAPI application8main_app = FastAPI()9 10# Manually add only non-static routes from mediaflow_app11for route in mediaflow_app.routes:12    if route.path != "/":  # Exclude the static file path13        main_app.router.routes.append(route)14 15# Run the main app16if __name__ == "__main__":17    import uvicorn18    uvicorn.run(main_app, host="0.0.0.0", port=8080)19