bradley6597 commited on
Commit
1e63095
1 Parent(s): ac48929
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -324,7 +324,7 @@ async def track(url: str, q: str, request: Request):
324
  return {"message": "ok"}
325
 
326
  # mount Gradio app to FastAPI app
327
- app2 = gr.mount_gradio_app(fapi, app, path="/")
328
  # serve the app
329
  if __name__ == "__main__":
330
  uvicorn.run(app2, host="0.0.0.0", port=7860)
 
324
  return {"message": "ok"}
325
 
326
  # mount Gradio app to FastAPI app
327
+ app2 = gr.mount_gradio_app(fapi, app, path="/", allowed_paths = ["."])
328
  # serve the app
329
  if __name__ == "__main__":
330
  uvicorn.run(app2, host="0.0.0.0", port=7860)