Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -292,6 +292,7 @@ def transcribe_youtube(youtube_url: str) -> str:
|
|
292 |
except Exception as e:
|
293 |
return f"Error processing YouTube video: {str(e)}"
|
294 |
|
|
|
295 |
@tool
|
296 |
def process_file(task_id: str, file_name: str) -> str:
|
297 |
"""
|
@@ -341,7 +342,7 @@ def process_file(task_id: str, file_name: str) -> str:
|
|
341 |
return f"File '{file_name}' of type '{mime_type or 'unknown'}' was fetched successfully. Content processing not implemented for this file type."
|
342 |
except Exception as e:
|
343 |
return f"Error processing file: {str(e)}"
|
344 |
-
|
345 |
|
346 |
class BasicAgent:
|
347 |
"""
|
|
|
292 |
except Exception as e:
|
293 |
return f"Error processing YouTube video: {str(e)}"
|
294 |
|
295 |
+
"""
|
296 |
@tool
|
297 |
def process_file(task_id: str, file_name: str) -> str:
|
298 |
"""
|
|
|
342 |
return f"File '{file_name}' of type '{mime_type or 'unknown'}' was fetched successfully. Content processing not implemented for this file type."
|
343 |
except Exception as e:
|
344 |
return f"Error processing file: {str(e)}"
|
345 |
+
"""
|
346 |
|
347 |
class BasicAgent:
|
348 |
"""
|