Spaces:
Running
Running
Download backend/combined_server.py from Sdm0/opencodereview: direct link, hf CLI and curl.
- Browser
- Download file 251 Bytes
-
https://huggingface.co/spaces/Sdm0/opencodereview/resolve/main/backend/combined_server.py
- Command line
-
hf download hf://spaces/Sdm0/opencodereview/backend/combined_server.py
-
curl -L -o combined_server.py https://huggingface.co/spaces/Sdm0/opencodereview/resolve/main/backend/combined_server.py
251 Bytes
| """Serve the React-facing API and legacy Gradio UI from one HF Space.""" | |
| from fastapi import FastAPI | |
| import gradio as gr | |
| from backend.api import app as api_app | |
| from backend.app import demo | |
| app: FastAPI = gr.mount_gradio_app(api_app, demo, path="/") | |