Hammedalmodel commited on
Commit
3ee24da
·
verified ·
1 Parent(s): 1d70e41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -500,9 +500,10 @@ def create_interface():
500
  # Wrap everything in FastAPI
501
  fastapi_app = FastAPI()
502
 
503
- # Mount Gradio interface
504
  interface = create_interface()
505
- app = mount_gradio_app(fastapi_app, interface, path="/")
 
 
506
 
507
  fastapi_app.add_middleware(
508
  CORSMiddleware,
 
500
  # Wrap everything in FastAPI
501
  fastapi_app = FastAPI()
502
 
 
503
  interface = create_interface()
504
+ app = interface.launch(share=False, inline=False, prevent_thread_lock=True)
505
+ fastapi_app.mount("/", app)
506
+
507
 
508
  fastapi_app.add_middleware(
509
  CORSMiddleware,