Srj-ai commited on
Commit
b84d9a9
·
verified ·
1 Parent(s): e16accc

added Args:

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -22,7 +22,8 @@ python_code_executor=PythonInterpreterTool()
22
  @tool
23
  def describe_image(path: str) -> str:
24
  """Describes the image. requires image path. return image description.
25
- path: Path to the image file.
 
26
  """
27
  image_captioner = pipeline(
28
  "image-to-text",
@@ -33,7 +34,8 @@ def describe_image(path: str) -> str:
33
  @tool
34
  def audio_to_text_tool(audio_file_path):
35
  """Converts audio file to text. requires audio file path. return transcribed text.
36
- audio_file_path: path of audio data file
 
37
  """
38
  output = SpeechToTextTool()
39
  return output
@@ -41,7 +43,8 @@ def audio_to_text_tool(audio_file_path):
41
  @tool
42
  def excel_reader(file_path):
43
  """ reads an excel file. Requires the file path as input. Return rows and columns of a data frame.
44
- file_path: file path as input
 
45
  """
46
  df= pd.read_excel(file_path)
47
  return (df.rows, df.columns)
 
22
  @tool
23
  def describe_image(path: str) -> str:
24
  """Describes the image. requires image path. return image description.
25
+ Args:
26
+ path: Path to the image file to analyze.
27
  """
28
  image_captioner = pipeline(
29
  "image-to-text",
 
34
  @tool
35
  def audio_to_text_tool(audio_file_path):
36
  """Converts audio file to text. requires audio file path. return transcribed text.
37
+ Args:
38
+ audio_file_path: path of audio data file
39
  """
40
  output = SpeechToTextTool()
41
  return output
 
43
  @tool
44
  def excel_reader(file_path):
45
  """ reads an excel file. Requires the file path as input. Return rows and columns of a data frame.
46
+ Args:
47
+ file_path: file path as input
48
  """
49
  df= pd.read_excel(file_path)
50
  return (df.rows, df.columns)