opencodereview / backend /combined_server.py
Sdm0's picture
Deploy 2cced123
5246c92 verified
Raw History Blame Contribute Delete
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="/")