gabejavitt commited on
Commit
ed0ae77
·
verified ·
1 Parent(s): e8011fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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.