SanaomerUnity commited on
Commit
3ff2a2c
·
1 Parent(s): d2a56b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -3,7 +3,8 @@ import backgammon
3
 
4
  def greet(GNUID, MatchID):
5
  b = backgammon.Backgammon(GNUID, MatchID)
6
- return b.generate_plays()
 
7
 
8
 
9
  demo = gr.Interface(fn=greet, inputs=["text","text"], outputs="text")
 
3
 
4
  def greet(GNUID, MatchID):
5
  b = backgammon.Backgammon(GNUID, MatchID)
6
+ for play in b.generate_plays():
7
+ return play.position
8
 
9
 
10
  demo = gr.Interface(fn=greet, inputs=["text","text"], outputs="text")