SanaomerUnity commited on
Commit
0ec69bc
·
1 Parent(s): f7bfd7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,9 +1,10 @@
1
  import gradio as gr
2
- import chess
3
 
4
-
5
- def greet(name):
6
- return "Hello " + name
 
7
 
8
 
9
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
 
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
+ return play.moves
8
 
9
 
10
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")