Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
a7ef237
1
Parent(s):
5f63a4c
fix
Browse files
chess_image_to_fen_tool.py
CHANGED
|
@@ -4,6 +4,7 @@ from utils import get_base64
|
|
| 4 |
from typing import Literal, Dict
|
| 5 |
from utils import get_base64
|
| 6 |
|
|
|
|
| 7 |
@tool
|
| 8 |
def chess_image_to_fen(image_path_in_base64:str, current_player: Literal["black", "white"]) -> Dict[str,str]:
|
| 9 |
"""
|
|
@@ -15,7 +16,7 @@ def chess_image_to_fen(image_path_in_base64:str, current_player: Literal["black"
|
|
| 15 |
JSON with FEN (Forsyth-Edwards Notation) string representing the current board position.
|
| 16 |
"""
|
| 17 |
print(f"Image to Fen invocada com os seguintes parametros:")
|
| 18 |
-
print(f"image_path: {
|
| 19 |
print(f"current_player: {current_player}")
|
| 20 |
|
| 21 |
|
|
|
|
| 4 |
from typing import Literal, Dict
|
| 5 |
from utils import get_base64
|
| 6 |
|
| 7 |
+
|
| 8 |
@tool
|
| 9 |
def chess_image_to_fen(image_path_in_base64:str, current_player: Literal["black", "white"]) -> Dict[str,str]:
|
| 10 |
"""
|
|
|
|
| 16 |
JSON with FEN (Forsyth-Edwards Notation) string representing the current board position.
|
| 17 |
"""
|
| 18 |
print(f"Image to Fen invocada com os seguintes parametros:")
|
| 19 |
+
print(f"image_path: {image_path_in_base64}")
|
| 20 |
print(f"current_player: {current_player}")
|
| 21 |
|
| 22 |
|