Revert "fix issue grabbing app instance"
Browse filesThis reverts commit 66f4523e6ae22375d479d8d2904bb89fe13110b9.
app.py
CHANGED
|
@@ -268,7 +268,7 @@ with gr.Blocks() as demo:
|
|
| 268 |
|
| 269 |
|
| 270 |
# Access FastAPI app from Gradio
|
| 271 |
-
app =
|
| 272 |
|
| 273 |
@app.post("/api/image_to_glb")
|
| 274 |
async def process_image_endpoint(
|
|
|
|
| 268 |
|
| 269 |
|
| 270 |
# Access FastAPI app from Gradio
|
| 271 |
+
app = gr.routes.App.get_app()
|
| 272 |
|
| 273 |
@app.post("/api/image_to_glb")
|
| 274 |
async def process_image_endpoint(
|