valentin urena commited on
Commit
a73ab00
·
verified ·
1 Parent(s): 501eb80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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