MENG21 commited on
Commit
9c47b70
·
1 Parent(s): 20a699f
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -114,7 +114,7 @@ def main():
114
  if st.button("Login with Google"):
115
  flow = create_flow()
116
  authorization_url, _ = flow.authorization_url(prompt="consent")
117
- st.markdown(f"[Login with Google]({authorization_url})")
118
  else:
119
  credentials = Credentials.from_authorized_user_info(json.loads(st.session_state['credentials']))
120
  user_info = get_user_info(credentials)
 
114
  if st.button("Login with Google"):
115
  flow = create_flow()
116
  authorization_url, _ = flow.authorization_url(prompt="consent")
117
+ st.markdown(f'<meta http-equiv="refresh" content="0;url={authorization_url}">', unsafe_allow_html=True)
118
  else:
119
  credentials = Credentials.from_authorized_user_info(json.loads(st.session_state['credentials']))
120
  user_info = get_user_info(credentials)