philipp-zettl commited on
Commit
961e9fd
1 Parent(s): 704aa87

update app

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -143,7 +143,7 @@ with gr.Blocks() as demo:
143
  gen_next_move_button = gr.Button("Submit")
144
 
145
  def gen_next_move(pgn, new_move, move_ctr, c):
146
- pgn += new_move.strip() + ' '
147
  if c == 'black':
148
  move_ctr += 1
149
  pgn = f'{pgn.rstrip()} {move_ctr}. '
 
143
  gen_next_move_button = gr.Button("Submit")
144
 
145
  def gen_next_move(pgn, new_move, move_ctr, c):
146
+ pgn += (' ' if c == 'black' else '') + new_move.strip() + ' '
147
  if c == 'black':
148
  move_ctr += 1
149
  pgn = f'{pgn.rstrip()} {move_ctr}. '