fix issue grabbing app instance
Browse files
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 = demo.server
|
272 |
|
273 |
@app.post("/api/image_to_glb")
|
274 |
async def process_image_endpoint(
|