Srj-ai commited on
Commit
fea567a
·
verified ·
1 Parent(s): 1a10732

updated docstrings for tools

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -34,9 +34,9 @@ def describe_image(path: str) -> str:
34
 
35
  @tool
36
  def audio_to_text_tool(directory: str = "/tmp") -> str:
37
- """Converts audio file to text. requires audio file path. return transcribed text.
38
  Args:
39
- audio_file_path: path of audio data file
40
  """
41
  files = os.listdir('/tmp')
42
  audio_file = [f for f in files if f.endswith('.mp3')][0]
@@ -46,9 +46,9 @@ def audio_to_text_tool(directory: str = "/tmp") -> str:
46
 
47
  @tool
48
  def excel_reader(directory: str = "/tmp") -> str:
49
- """ reads an excel file. Requires the temporary file. Return information on rows and columns and description of the file.
50
  Args:
51
- /tmp: file path as input
52
  """
53
  files = os.listdir('/tmp')
54
  excel_file = [f for f in files if f.endswith('.xlsx')][0]
 
34
 
35
  @tool
36
  def audio_to_text_tool(directory: str = "/tmp") -> str:
37
+ """Converts audio file to text. Requires the temporary directory file. return transcribed text.
38
  Args:
39
+ directory: Temporary directory where .mp3 file are stored as input
40
  """
41
  files = os.listdir('/tmp')
42
  audio_file = [f for f in files if f.endswith('.mp3')][0]
 
46
 
47
  @tool
48
  def excel_reader(directory: str = "/tmp") -> str:
49
+ """ reads an excel file. Requires the temporary directory file. Return information on rows and columns and description of the file.
50
  Args:
51
+ dirctory: Temporary directory where .xlsx file are stored as input
52
  """
53
  files = os.listdir('/tmp')
54
  excel_file = [f for f in files if f.endswith('.xlsx')][0]