Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
13f31e3
1
Parent(s):
992c62f
fix
Browse files
chess_image_to_fen_tool.py
CHANGED
@@ -33,7 +33,7 @@ def chess_image_to_fen(image_path_in_base64:str, current_player: Literal["black"
|
|
33 |
|
34 |
if not base64_image:
|
35 |
raise ValueError("Failed to encode image to base64.")
|
36 |
-
base64_image_encoded = f"data:image/
|
37 |
url = CHESSVISION_TO_FEN_URL
|
38 |
payload = {
|
39 |
"board_orientation": "predict",
|
|
|
33 |
|
34 |
if not base64_image:
|
35 |
raise ValueError("Failed to encode image to base64.")
|
36 |
+
base64_image_encoded = f"data:image/png;base64,{base64_image}"
|
37 |
url = CHESSVISION_TO_FEN_URL
|
38 |
payload = {
|
39 |
"board_orientation": "predict",
|