Hammedalmodel commited on
Commit
2de5fc3
·
verified ·
1 Parent(s): c6574f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -501,7 +501,7 @@ interface = create_interface()
501
 
502
  fastapi_app = FastAPI()
503
 
504
- app = mount_gradio_app(fastapi_app, interface, path="/")
505
 
506
  # Add CORS middleware
507
  fastapi_app.add_middleware(
@@ -582,3 +582,5 @@ async def align_api(
582
  status_code=500,
583
  detail=f"Unexpected server error: {str(e)}"
584
  )
 
 
 
501
 
502
  fastapi_app = FastAPI()
503
 
504
+ mount_gradio_app(fastapi_app, interface, path="/")
505
 
506
  # Add CORS middleware
507
  fastapi_app.add_middleware(
 
582
  status_code=500,
583
  detail=f"Unexpected server error: {str(e)}"
584
  )
585
+
586
+ app = fastapi_app