giulia-fontanella commited on
Commit
969b71d
·
verified ·
1 Parent(s): 00a8784

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +4 -4
tools.py CHANGED
@@ -53,10 +53,10 @@ class ExtractTextFromImage:
53
  @tool
54
  def __call__(self, img_path: str) -> str:
55
  """
56
- Extract text from an image file using a multimodal model.
57
 
58
  Args:
59
- img_path: A string representing the url of an image (e.g., PNG, JPEG).
60
 
61
  Returns:
62
  A single string containing the concatenated text extracted from the image.
@@ -110,14 +110,14 @@ class DescribeImage:
110
  @tool
111
  def __call__(self, img_path: str) -> str:
112
  """
113
- Generate a detailed description of an image using a multimodal model.
114
  This function reads a image from an url, encodes it, and sends it to a
115
  vision-capable language model to obtain a comprehensive, natural language
116
  description of the image's content, including its objects, actions, and context,
117
  following a specific query.
118
 
119
  Args:
120
- img_path: A string representing the url of an image (e.g., PNG, JPEG).
121
  query: Information to extract from the image.
122
 
123
  Returns:
 
53
  @tool
54
  def __call__(self, img_path: str) -> str:
55
  """
56
+ Extract text from an image file.
57
 
58
  Args:
59
+ img_path: A string representing the path to an image (e.g., PNG, JPEG).
60
 
61
  Returns:
62
  A single string containing the concatenated text extracted from the image.
 
110
  @tool
111
  def __call__(self, img_path: str) -> str:
112
  """
113
+ Generate a detailed description of an image.
114
  This function reads a image from an url, encodes it, and sends it to a
115
  vision-capable language model to obtain a comprehensive, natural language
116
  description of the image's content, including its objects, actions, and context,
117
  following a specific query.
118
 
119
  Args:
120
+ img_path: A string representing the path to an image (e.g., PNG, JPEG).
121
  query: Information to extract from the image.
122
 
123
  Returns: