Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -816,6 +816,7 @@ class ChessAnalysisInput(BaseModel):
|
|
| 816 |
image_path: str = Field(description="Path to chess board image file")
|
| 817 |
description: str = Field(description="Any additional context about the position (optional)", default="")
|
| 818 |
|
|
|
|
| 819 |
def analyze_chess_position(image_path: str, description: str = "") -> str:
|
| 820 |
"""
|
| 821 |
Analyzes a chess position from an image using Stockfish engine.
|
|
|
|
| 816 |
image_path: str = Field(description="Path to chess board image file")
|
| 817 |
description: str = Field(description="Any additional context about the position (optional)", default="")
|
| 818 |
|
| 819 |
+
@tool(args_schema=ChessAnalysisInput)
|
| 820 |
def analyze_chess_position(image_path: str, description: str = "") -> str:
|
| 821 |
"""
|
| 822 |
Analyzes a chess position from an image using Stockfish engine.
|