File size: 277 Bytes
29fd274
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import gradio as gr
from app.main import app as fastapi_app

# Mount FastAPI directly into Gradio
demo = gr.mount_gradio_app(fastapi_app, gr.Blocks(title="MatchLens API"), path="/")

if __name__ == "__main__":
    import uvicorn
    uvicorn.run(demo, host="0.0.0.0", port=7860)