Spaces:
Sleeping
Sleeping
Commit ·
8774e66
1
Parent(s): decfb00
commit 00000013
Browse files
app.py
CHANGED
|
@@ -184,7 +184,7 @@ with gr.Blocks() as demo:
|
|
| 184 |
fastapi_app = FastAPI()
|
| 185 |
|
| 186 |
# Mount Flask under FastAPI (so /apidocs works)
|
| 187 |
-
fastapi_app.mount("/", WSGIMiddleware(flask_app))
|
| 188 |
|
| 189 |
# Mount Gradio at root path (overrides Flask's "/")
|
| 190 |
app = mount_gradio_app(fastapi_app, demo, path="/") # Mount Flask under /flask
|
|
|
|
| 184 |
fastapi_app = FastAPI()
|
| 185 |
|
| 186 |
# Mount Flask under FastAPI (so /apidocs works)
|
| 187 |
+
fastapi_app.mount("/api", WSGIMiddleware(flask_app))
|
| 188 |
|
| 189 |
# Mount Gradio at root path (overrides Flask's "/")
|
| 190 |
app = mount_gradio_app(fastapi_app, demo, path="/") # Mount Flask under /flask
|