Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def position_evaluation(fen):
|
|
| 16 |
fen (str): Chess position in FEN
|
| 17 |
|
| 18 |
Returns:
|
| 19 |
-
|
| 20 |
"""
|
| 21 |
print("")
|
| 22 |
|
|
@@ -48,8 +48,8 @@ gradio.utils.watchfn_spaces = _noop
|
|
| 48 |
|
| 49 |
mcp = gr.Interface(
|
| 50 |
fn=position_evaluation,
|
| 51 |
-
inputs = [gr.Textbox(label = "Forsyth-Edwards Notation (FEN)", value = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
|
| 52 |
-
outputs = [gr.Textbox(label = "Evaluation", interactive = False
|
| 53 |
title="Stockfish Chess Engine",
|
| 54 |
description="Chess position evaluation by top open source chess engine"
|
| 55 |
)
|
|
|
|
| 16 |
fen (str): Chess position in FEN
|
| 17 |
|
| 18 |
Returns:
|
| 19 |
+
tuple: (result, error) - Best move with continuation in UCI notation
|
| 20 |
"""
|
| 21 |
print("")
|
| 22 |
|
|
|
|
| 48 |
|
| 49 |
mcp = gr.Interface(
|
| 50 |
fn=position_evaluation,
|
| 51 |
+
inputs = [gr.Textbox(label = "Forsyth-Edwards Notation (FEN)", value = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1")],
|
| 52 |
+
outputs = [gr.Textbox(label = "Evaluation", interactive = False)],
|
| 53 |
title="Stockfish Chess Engine",
|
| 54 |
description="Chess position evaluation by top open source chess engine"
|
| 55 |
)
|