Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ def play_turn(human_response, loc, player, cur, custom_token, request: gr.Reques
|
|
| 94 |
gr.update(), gr.update(),
|
| 95 |
loc, player, cur
|
| 96 |
)
|
| 97 |
-
|
| 98 |
chosen_token = custom_token.strip() if custom_token and custom_token.strip() else (request.token if request else None)
|
| 99 |
|
| 100 |
if not chosen_token:
|
|
@@ -200,8 +200,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 200 |
|
| 201 |
with gr.Accordion("🔑 Authentication Options", open=False):
|
| 202 |
with gr.Row():
|
| 203 |
-
gr.
|
| 204 |
-
user_token_input = gr.Textbox(label="Or paste your HF Token (hf_...)", type="password")
|
| 205 |
|
| 206 |
state_loc = gr.State()
|
| 207 |
state_player = gr.State()
|
|
|
|
| 94 |
gr.update(), gr.update(),
|
| 95 |
loc, player, cur
|
| 96 |
)
|
| 97 |
+
print(custom_token)
|
| 98 |
chosen_token = custom_token.strip() if custom_token and custom_token.strip() else (request.token if request else None)
|
| 99 |
|
| 100 |
if not chosen_token:
|
|
|
|
| 200 |
|
| 201 |
with gr.Accordion("🔑 Authentication Options", open=False):
|
| 202 |
with gr.Row():
|
| 203 |
+
user_token_input = gr.Textbox(label="Paste your HF Token (hf_...)", type="password")
|
|
|
|
| 204 |
|
| 205 |
state_loc = gr.State()
|
| 206 |
state_player = gr.State()
|