Spaces:
Sleeping
Sleeping
fix: mount flask app on /flask to avoid conflict with Gradio internal API
Browse files
app.py
CHANGED
|
@@ -702,7 +702,7 @@ try:
|
|
| 702 |
title="Truth Detector API & Interactive Demo",
|
| 703 |
description="Backend API for Fake News Detection. REST API endpoints available at /api/*"
|
| 704 |
)
|
| 705 |
-
demo.app.mount("/
|
| 706 |
_GRADIO_AVAILABLE = True
|
| 707 |
except ImportError:
|
| 708 |
_GRADIO_AVAILABLE = False
|
|
|
|
| 702 |
title="Truth Detector API & Interactive Demo",
|
| 703 |
description="Backend API for Fake News Detection. REST API endpoints available at /api/*"
|
| 704 |
)
|
| 705 |
+
demo.app.mount("/flask", WSGIMiddleware(app))
|
| 706 |
_GRADIO_AVAILABLE = True
|
| 707 |
except ImportError:
|
| 708 |
_GRADIO_AVAILABLE = False
|