Nioi commited on
Commit
70fdc68
·
1 Parent(s): 8882ba3

placeholder until chess notation is figured out

Browse files
Files changed (1) hide show
  1. tools/media.py +1 -2
tools/media.py CHANGED
@@ -1,7 +1,6 @@
1
  from smolagents import tool
2
  import whisper
3
  import requests
4
- from board_to_fen.predict import get_fen_from_image_path
5
 
6
  STOCKFISH_API_URL = "https://stockfish.online/api/s/v2.php"
7
  MODEL = whisper.load_model("tiny")
@@ -33,7 +32,7 @@ def get_fen(file_path:str) -> str:
33
  fen = None
34
 
35
  try:
36
- fen = get_fen_from_image_path(file_path)
37
  except Exception as e:
38
  return f"Error decoding image file: {str(e)}"
39
 
 
1
  from smolagents import tool
2
  import whisper
3
  import requests
 
4
 
5
  STOCKFISH_API_URL = "https://stockfish.online/api/s/v2.php"
6
  MODEL = whisper.load_model("tiny")
 
32
  fen = None
33
 
34
  try:
35
+ fen = file_path
36
  except Exception as e:
37
  return f"Error decoding image file: {str(e)}"
38