crevelop commited on
Commit
2921de9
·
unverified ·
1 Parent(s): 66f4523

Revert "fix issue grabbing app instance"

Browse files

This reverts commit 66f4523e6ae22375d479d8d2904bb89fe13110b9.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -268,7 +268,7 @@ with gr.Blocks() as demo:
268
 
269
 
270
  # Access FastAPI app from Gradio
271
- app = demo.server
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(