Update app.py
Browse files
app.py
CHANGED
|
@@ -33,15 +33,6 @@ def read_file(file_path: str) -> str:
|
|
| 33 |
except Exception as e:
|
| 34 |
return f"Error reading file {file_path}: {e}"
|
| 35 |
|
| 36 |
-
@tool
|
| 37 |
-
def read_excel_cell(file_path: str, sheet_name: str | int = 0, row: int, col: int) -> str:
|
| 38 |
-
"""Reads a specific cell from an Excel file (1-based index for row/col)."""
|
| 39 |
-
try:
|
| 40 |
-
df = pd.read_excel(file_path, sheet_name=sheet_name)
|
| 41 |
-
return str(df.iloc[row-1, col-1])
|
| 42 |
-
except Exception as e:
|
| 43 |
-
return f"Error reading Excel file {file_path}: {e}"
|
| 44 |
-
|
| 45 |
@tool
|
| 46 |
def transcribe_audio(file_path: str) -> str:
|
| 47 |
"""Transcribes audio from a file path."""
|
|
|
|
| 33 |
except Exception as e:
|
| 34 |
return f"Error reading file {file_path}: {e}"
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
@tool
|
| 37 |
def transcribe_audio(file_path: str) -> str:
|
| 38 |
"""Transcribes audio from a file path."""
|