Spaces:
Paused
Paused
Commit
·
c348666
1
Parent(s):
84fe51a
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,9 @@ import gradio as gr
|
|
| 2 |
import backgammon
|
| 3 |
|
| 4 |
def greet(GNUID):
|
| 5 |
-
b = backgammon.Backgammon(GNUID, "cInpAAAAAAAA")
|
| 6 |
-
|
| 7 |
-
|
| 8 |
|
| 9 |
|
| 10 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
|
| 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")
|