File size: 251 Bytes
5246c92
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
"""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="/")