SanaomerUnity commited on
Commit
83071ea
·
1 Parent(s): 1aef8a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,13 +1,13 @@
1
  import gradio as gr
2
  import backgammon
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")
12
 
13
  demo.launch()
 
1
  import gradio as gr
2
  import backgammon
3
 
4
+ def greet(MatchID):
5
+ b = backgammon.Backgammon("4HPwATDgc/ABMA", MatchID)
6
 
7
  for play in b.generate_plays():
8
  return play.moves
9
 
10
 
11
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
12
 
13
  demo.launch()