Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -13,6 +13,8 @@ from fastapi.exceptions import RequestValidationError
|
|
13 |
from fastapi.responses import JSONResponse
|
14 |
|
15 |
import fn
|
|
|
|
|
16 |
|
17 |
app = FastAPI()
|
18 |
|
@@ -24,6 +26,7 @@ app.add_middleware(
|
|
24 |
allow_headers=["*"],
|
25 |
)
|
26 |
|
|
|
27 |
|
28 |
fn.load_model('large-v3')
|
29 |
|
|
|
13 |
from fastapi.responses import JSONResponse
|
14 |
|
15 |
import fn
|
16 |
+
import gradio as gr
|
17 |
+
from app import demo
|
18 |
|
19 |
app = FastAPI()
|
20 |
|
|
|
26 |
allow_headers=["*"],
|
27 |
)
|
28 |
|
29 |
+
gr.mount_gradio_app(app, demo, path="/gradio")
|
30 |
|
31 |
fn.load_model('large-v3')
|
32 |
|