abidlabs HF staff commited on
Commit
4042cfe
·
1 Parent(s): 2bbbe08

auth dependency

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ with gr.Blocks() as main_demo:
79
  gr.Button("Logout", link="/logout")
80
  main_demo.load(greet, None, m)
81
 
82
- app = gr.mount_gradio_app(app, main_demo, path="/gradio")
83
 
84
 
85
  if __name__ == '__main__':
 
79
  gr.Button("Logout", link="/logout")
80
  main_demo.load(greet, None, m)
81
 
82
+ app = gr.mount_gradio_app(app, main_demo, path="/gradio", auth_dependency=get_user)
83
 
84
 
85
  if __name__ == '__main__':