Spaces:
Paused
Paused
Commit
·
0ec69bc
1
Parent(s):
f7bfd7b
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 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")
|