File size: 292 Bytes
97eceff
 
b7c7aa0
f2fe3b0
 
 
 
b7c7aa0
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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="/")