Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,8 +37,7 @@ async def check_generation_status(job_id: str):
|
|
| 37 |
return JSONResponse(content={"status": "not_found"}, status_code=404)
|
| 38 |
|
| 39 |
|
| 40 |
-
|
| 41 |
-
api_app.mount("/", WSGIMiddleware(demo))
|
| 42 |
|
| 43 |
# Install additional dependencies
|
| 44 |
try:
|
|
@@ -757,6 +756,9 @@ except Exception as e:
|
|
| 757 |
logger.error(f"Failed to initialize Gradio Blocks interface: {str(e)}")
|
| 758 |
raise
|
| 759 |
|
|
|
|
|
|
|
|
|
|
| 760 |
if __name__ == "__main__":
|
| 761 |
try:
|
| 762 |
logger.info("Launching Gradio application")
|
|
|
|
| 37 |
return JSONResponse(content={"status": "not_found"}, status_code=404)
|
| 38 |
|
| 39 |
|
| 40 |
+
|
|
|
|
| 41 |
|
| 42 |
# Install additional dependencies
|
| 43 |
try:
|
|
|
|
| 756 |
logger.error(f"Failed to initialize Gradio Blocks interface: {str(e)}")
|
| 757 |
raise
|
| 758 |
|
| 759 |
+
# Mount the Gradio Blocks demo interface as WSGI
|
| 760 |
+
api_app.mount("/", WSGIMiddleware(demo))
|
| 761 |
+
|
| 762 |
if __name__ == "__main__":
|
| 763 |
try:
|
| 764 |
logger.info("Launching Gradio application")
|