Spaces:
Paused
Paused
updated app.py
Browse files
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)
|
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)
|