bradley6597 commited on
Commit
6310cd2
1 Parent(s): b193610

Add back authentication

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -330,7 +330,7 @@ async def track(url: str, q: str, request: Request):
330
  return {"message": "ok"}
331
 
332
  # mount Gradio app to FastAPI app
333
- app2 = gr.mount_gradio_app(fapi, app, path="/", allowed_paths = ["."])
334
  # serve the app
335
  if __name__ == "__main__":
336
  uvicorn.run(app2, host="0.0.0.0", port=7860)
 
330
  return {"message": "ok"}
331
 
332
  # mount Gradio app to FastAPI app
333
+ app2 = gr.mount_gradio_app(fapi, app, path="/", allowed_paths = ["."], auth = same_auth)
334
  # serve the app
335
  if __name__ == "__main__":
336
  uvicorn.run(app2, host="0.0.0.0", port=7860)