bstraehle commited on
Commit
760a1cc
·
verified ·
1 Parent(s): ec1e45c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,7 +16,7 @@ def position_evaluation(fen):
16
  fen (str): Chess position in FEN
17
 
18
  Returns:
19
- str: Best move with continuation in UCI notation
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", lines=2)],
52
- outputs = [gr.Textbox(label = "Evaluation", interactive = False, lines=2)],
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
  )