Spaces:
Running on Zero
Running on Zero
Fix import stuck in comment line
Browse files
app.py
CHANGED
|
@@ -184,7 +184,9 @@ with gr.Blocks(title="Respite API") as demo:
|
|
| 184 |
# and any routes on demo.app before launch() are lost. We intercept the
|
| 185 |
# app creation by wrapping the FastAPI app returned by the Gradio server's
|
| 186 |
# configure_app / create_app lifecycle, then add our routes at startup.
|
| 187 |
-
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
| 188 |
|
| 189 |
_orig_create_app = GradioApp.create_app
|
| 190 |
|
|
|
|
| 184 |
# and any routes on demo.app before launch() are lost. We intercept the
|
| 185 |
# app creation by wrapping the FastAPI app returned by the Gradio server's
|
| 186 |
# configure_app / create_app lifecycle, then add our routes at startup.
|
| 187 |
+
# ---------------------------------------------------------------------------
|
| 188 |
+
|
| 189 |
+
from gradio.routes import App as GradioApp
|
| 190 |
|
| 191 |
_orig_create_app = GradioApp.create_app
|
| 192 |
|