abidlabs HF staff commited on
Commit
a9c8dfc
1 Parent(s): 76bd359
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -39,8 +39,10 @@ def public(request: Request, user: dict = Depends(get_user)):
39
  root_url = gr.route_utils.get_root_url(request, "/", None)
40
  print(">", user, root_url)
41
  if user:
 
42
  return RedirectResponse(url=f'{root_url}/main/')
43
  else:
 
44
  return RedirectResponse(url=f'{root_url}/gradio/')
45
 
46
  @app.route('/logout')
 
39
  root_url = gr.route_utils.get_root_url(request, "/", None)
40
  print(">", user, root_url)
41
  if user:
42
+ print(">>>>main")
43
  return RedirectResponse(url=f'{root_url}/main/')
44
  else:
45
+ print(">>>>gradio")
46
  return RedirectResponse(url=f'{root_url}/gradio/')
47
 
48
  @app.route('/logout')