SanaomerUnity commited on
Commit
430276c
·
1 Parent(s): 5fd5f75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -3,7 +3,9 @@ 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
+
7
+ for play in b.generate_plays():
8
+ return play.moves
9
 
10
 
11
  demo = gr.Interface(fn=greet, inputs=["text","text"], outputs="text")