waliullah123 commited on
Commit
1d1cedf
·
verified ·
1 Parent(s): 87212b3

fix: mount flask app on /flask to avoid conflict with Gradio internal API

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("/api", WSGIMiddleware(app))
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