Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,8 @@ import stat
|
|
| 8 |
|
| 9 |
def eval(fenstring):
|
| 10 |
output = ""
|
| 11 |
-
os.chmod("./
|
| 12 |
-
engine = chess.engine.SimpleEngine.popen_uci("./
|
| 13 |
|
| 14 |
|
| 15 |
# Score: PovScore(Cp(+20), WHITE)
|
|
@@ -23,6 +23,6 @@ def eval(fenstring):
|
|
| 23 |
|
| 24 |
engine.quit()
|
| 25 |
return info
|
| 26 |
-
iface = gr.Interface(fn=eval, title="
|
| 27 |
iface.queue(api_open=True)
|
| 28 |
iface.launch()
|
|
|
|
| 8 |
|
| 9 |
def eval(fenstring):
|
| 10 |
output = ""
|
| 11 |
+
os.chmod("./pigeon-1.5.1",0o0777)
|
| 12 |
+
engine = chess.engine.SimpleEngine.popen_uci("./pigeon-1.5.1")
|
| 13 |
|
| 14 |
|
| 15 |
# Score: PovScore(Cp(+20), WHITE)
|
|
|
|
| 23 |
|
| 24 |
engine.quit()
|
| 25 |
return info
|
| 26 |
+
iface = gr.Interface(fn=eval, title="pigeon-1",inputs="text", outputs="text")
|
| 27 |
iface.queue(api_open=True)
|
| 28 |
iface.launch()
|