Spaces:
Runtime error
Runtime error
valentin urena
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,6 +114,7 @@ with gr.Blocks(css_paths="styles.css", fill_height=True) as demo:
|
|
| 114 |
move_input = gr.Textbox(label="Enter your move in algebraic notation (e.g., e4, Nf3, Bxc4)")
|
| 115 |
btn = gr.Button("Submit Move")
|
| 116 |
btn.click(play_match.generate_moves, inputs=move_input, outputs=[board_image, game_logs])
|
|
|
|
| 117 |
|
| 118 |
# btn.click(display_text, inputs=play_match.get_move_logs, outputs=text_output)
|
| 119 |
|
|
|
|
| 114 |
move_input = gr.Textbox(label="Enter your move in algebraic notation (e.g., e4, Nf3, Bxc4)")
|
| 115 |
btn = gr.Button("Submit Move")
|
| 116 |
btn.click(play_match.generate_moves, inputs=move_input, outputs=[board_image, game_logs])
|
| 117 |
+
btn.click(lambda x: gr.update(value=''), [],[move_input])
|
| 118 |
|
| 119 |
# btn.click(display_text, inputs=play_match.get_move_logs, outputs=text_output)
|
| 120 |
|