ClementBM commited on
Commit
a9fd1f2
1 Parent(s): 9ca3472

fix bug and update model

Browse files
Files changed (2) hide show
  1. connectfour/app.py +2 -2
  2. models/model.onnx +2 -2
connectfour/app.py CHANGED
@@ -133,7 +133,7 @@ with demo:
133
  else:
134
  return gr.Checkbox.update(interactive=True)
135
 
136
- def bot(env, game_state_value):
137
  if game_state_value == game_on_msg:
138
  env, state_msg = play(env, human)
139
  if state_msg == game_on_msg:
@@ -172,7 +172,7 @@ with demo:
172
  ).then(on_render_change, inputs=[env], outputs=[output]).then(
173
  wait, inputs=[game_state], outputs=[who_plays_first]
174
  ).then(
175
- bot, inputs=[env, game_state], outputs=[game_state, who_plays_first]
176
  ).then(
177
  on_render_change, inputs=[env], outputs=[output]
178
  )
 
133
  else:
134
  return gr.Checkbox.update(interactive=True)
135
 
136
+ def bot(env, game_state_value, human):
137
  if game_state_value == game_on_msg:
138
  env, state_msg = play(env, human)
139
  if state_msg == game_on_msg:
 
172
  ).then(on_render_change, inputs=[env], outputs=[output]).then(
173
  wait, inputs=[game_state], outputs=[who_plays_first]
174
  ).then(
175
+ bot, inputs=[env, game_state, human], outputs=[game_state, who_plays_first]
176
  ).then(
177
  on_render_change, inputs=[env], outputs=[output]
178
  )
models/model.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:29cdb51e50d95db50ba3870f70bfa8090b8c0a9f00acea097a5774256484c756
3
- size 1243546
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e427f205e29145184e4ed787aed7935e2c50312ede11a74618383e565fb714f
3
+ size 672834