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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,7 +22,7 @@ python_code_executor=PythonInterpreterTool()
22
  @tool
23
  def describe_image(path: str) -> str:
24
  """Describes the image. requires image path. return image description.
25
- Args: path of image
26
  """
27
  image_captioner = pipeline(
28
  "image-to-text",
@@ -33,7 +33,7 @@ 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
- Args: path of audio data file
37
  """
38
  output = SpeechToTextTool()
39
  return output
@@ -41,7 +41,7 @@ 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
- Args: 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
+ path: Path to the image file.
26
  """
27
  image_captioner = pipeline(
28
  "image-to-text",
 
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
  @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)