sanjeevbora commited on
Commit
2512a13
·
verified ·
1 Parent(s): 981eaee

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ with gr.Blocks() as interface:
115
  login_btn = gr.Button("Sign In with HF")
116
 
117
  # Redirect to OAuth login
118
- login_btn.click(lambda: oauth_login(), outputs=None) # This will return the login URL
119
 
120
  # Hidden components initially
121
  input_box = gr.Textbox(label="Enter your question", placeholder="Type your question here...", visible=False)
 
115
  login_btn = gr.Button("Sign In with HF")
116
 
117
  # Redirect to OAuth login
118
+ login_btn.click(lambda: f"window.open('{oauth_login()}')", outputs=None)
119
 
120
  # Hidden components initially
121
  input_box = gr.Textbox(label="Enter your question", placeholder="Type your question here...", visible=False)