lalalalalalalalalala's picture
Update app.py
97eceff verified
raw
history blame contribute delete
292 Bytes
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="/")