backgammon / app.py
SanaomerUnity's picture
Update app.py
2002f27
raw
history blame
260 Bytes
import gradio as gr
import backgammon
def greet(GNUID):
b = backgammon.Backgammon(GNUID, "cAngAAAAAAAA")
for play in b.generate_plays():
return play.moves, play.position
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()