Spaces:
Paused
Paused
Commit
·
83071ea
1
Parent(s):
1aef8a5
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import backgammon
|
| 3 |
|
| 4 |
-
def greet(
|
| 5 |
-
b = backgammon.Backgammon(
|
| 6 |
|
| 7 |
for play in b.generate_plays():
|
| 8 |
return play.moves
|
| 9 |
|
| 10 |
|
| 11 |
-
demo = gr.Interface(fn=greet, inputs=
|
| 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()
|