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

fix issue grabbing app instance

Browse files
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 = gr.routes.App.get_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 = demo.server
272
 
273
  @app.post("/api/image_to_glb")
274
  async def process_image_endpoint(