Spaces:
Runtime error
Runtime error
Update Gradio app with multiple files
Browse files
app.py
CHANGED
|
@@ -224,7 +224,9 @@ def create_interface():
|
|
| 224 |
# Login section
|
| 225 |
with gr.Row():
|
| 226 |
with gr.Column(scale=1):
|
|
|
|
| 227 |
user_info = gr.HTML("<p>🔐 Please login with Hugging Face to play</p>")
|
|
|
|
| 228 |
|
| 229 |
# Main game area (hidden until login)
|
| 230 |
with gr.Group(visible=False) as game_area:
|
|
@@ -313,7 +315,7 @@ def create_interface():
|
|
| 313 |
)
|
| 314 |
return gr.update(), gr.update(visible=False), "No box created yet"
|
| 315 |
|
| 316 |
-
login_btn.
|
| 317 |
handle_login,
|
| 318 |
inputs=[login_btn],
|
| 319 |
outputs=[user_info, game_area, user_status]
|
|
|
|
| 224 |
# Login section
|
| 225 |
with gr.Row():
|
| 226 |
with gr.Column(scale=1):
|
| 227 |
+
login_btn = gr.LoginButton()
|
| 228 |
user_info = gr.HTML("<p>🔐 Please login with Hugging Face to play</p>")
|
| 229 |
+
>>>>>>> REPLACE REPLACE
|
| 230 |
|
| 231 |
# Main game area (hidden until login)
|
| 232 |
with gr.Group(visible=False) as game_area:
|
|
|
|
| 315 |
)
|
| 316 |
return gr.update(), gr.update(visible=False), "No box created yet"
|
| 317 |
|
| 318 |
+
login_btn.success(
|
| 319 |
handle_login,
|
| 320 |
inputs=[login_btn],
|
| 321 |
outputs=[user_info, game_area, user_status]
|