Pijush2023 commited on
Commit
f09962a
·
verified ·
1 Parent(s): ec24331

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -953,6 +953,9 @@ def create_gradio_interface():
953
  with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
954
  state = gr.State({'authenticated': False})
955
 
 
 
 
956
  if user_info:
957
  gr.Markdown(f"### Hello, {user_info['name']}! Welcome to the Gradio App")
958
  name = gr.Textbox(label="Enter your name")
@@ -989,10 +992,6 @@ def create_gradio_interface():
989
  refresh_button = gr.Button("Refresh Images")
990
  refresh_button.click(fn=update_images, inputs=None, outputs=[image_output_1, image_output_2, image_output_3])
991
 
992
- else:
993
- login_url = login()
994
- gr.Markdown(f"<div style='text-align: right;'><a href='{login_url}' class='gr-button gr-button-primary'>Login with Google</a></div>")
995
-
996
  return demo
997
 
998
  def main(params=None):
 
953
  with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
954
  state = gr.State({'authenticated': False})
955
 
956
+ login_url = login()
957
+ gr.Markdown(f"<div style='text-align: right;'><a href='{login_url}' class='gr-button gr-button-primary'>Login with Google</a></div>")
958
+
959
  if user_info:
960
  gr.Markdown(f"### Hello, {user_info['name']}! Welcome to the Gradio App")
961
  name = gr.Textbox(label="Enter your name")
 
992
  refresh_button = gr.Button("Refresh Images")
993
  refresh_button.click(fn=update_images, inputs=None, outputs=[image_output_1, image_output_2, image_output_3])
994
 
 
 
 
 
995
  return demo
996
 
997
  def main(params=None):