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