Spaces:
Paused
Paused
Download app.py from tenperformer/Matchlens-API: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/spaces/tenperformer/Matchlens-API/resolve/main/app.py
- Command line
-
hf download hf://spaces/tenperformer/Matchlens-API/app.py
-
curl -L -o app.py https://huggingface.co/spaces/tenperformer/Matchlens-API/resolve/main/app.py
277 Bytes
| 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) |