SanaomerUnity commited on
Commit
c65e0e8
·
1 Parent(s): 4ad1b98

Update app.py

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