Spaces:
Running
Running
Update app.py
Browse files
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 =
|
|
|
|
|
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,
|