Spaces:
Sleeping
Sleeping
| import subprocess | |
| import sys | |
| from fastapi import FastAPI | |
| def install_gradio(): | |
| subprocess.check_call([sys.executable, "-m", "pip", "install", "--upgrade", "gradio"]) | |
| install_gradio() | |
| import gradio as gr | |
| from run import Core | |
| app = FastAPI() | |
| app = gr.mount_gradio_app(app, Core, path="/") |