Alexandre Gazola commited on
Commit
1fa951b
·
1 Parent(s): a3d2d6f
Files changed (2) hide show
  1. app.py +2 -2
  2. chess_image_to_fen_tool.py +1 -7
app.py CHANGED
@@ -75,8 +75,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
75
  print(f"Skipping item with missing task_id or question: {item}")
76
  continue
77
 
78
- if "chess" not in question_text:
79
- continue
80
 
81
  try:
82
  file_name = item.get("file_name")
 
75
  print(f"Skipping item with missing task_id or question: {item}")
76
  continue
77
 
78
+ #if "chess" not in question_text:
79
+ # continue
80
 
81
  try:
82
  file_name = item.get("file_name")
chess_image_to_fen_tool.py CHANGED
@@ -54,10 +54,4 @@ def chess_image_to_fen(image_path_in_base64:str, current_player: Literal["black"
54
  else:
55
  raise Exception("Requisição feita, mas falhou na predição.")
56
  else:
57
- print("Deu erro na chamada a API para obtencao do FEN: " + response.text)
58
- return {
59
- "fen": "3r2k1/pp3pp1/4b2p/7Q/3n4/PqBBR2P/5PP1/6K1 b - - 0 1",
60
- "current_player": "black",
61
- "status": "ongoing"
62
- }
63
-
 
54
  else:
55
  raise Exception("Requisição feita, mas falhou na predição.")
56
  else:
57
+ raise Exception(("Deu erro na chamada a API para obtencao do FEN: " + response.text)