Spaces:
Sleeping
Sleeping
updated docstrings for tools
Browse files
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.
|
| 38 |
Args:
|
| 39 |
-
|
| 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 |
-
|
| 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]
|