bstraehle commited on
Commit
98df7b0
·
verified ·
1 Parent(s): ad713d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -19,10 +19,11 @@ def position_evaluation(fen):
19
  Returns:
20
  tuple: (result, error) - Best move with continuation in UCI notation
21
  """
22
- is_valid, msg = validate_input(fen)
23
 
24
  if not is_valid:
25
- gr.Warning(f"Invalid input: {msg}")
 
26
  return None, msg
27
 
28
  print("")
 
19
  Returns:
20
  tuple: (result, error) - Best move with continuation in UCI notation
21
  """
22
+ is_valid = validate_input(fen)
23
 
24
  if not is_valid:
25
+ msg = f"Invalid input"
26
+ gr.Warning(msg)
27
  return None, msg
28
 
29
  print("")