SergeyO7 commited on
Commit
4b67ab1
·
verified ·
1 Parent(s): 8e0562f

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +14 -14
agent.py CHANGED
@@ -73,19 +73,19 @@ def ImageAnalysisTool(image_path: str) -> str:
73
  return f"The image description: '{response}'"
74
 
75
 
76
- @tool
77
- class LocalFileAudioTool:
78
- """Tool for transcribing audio files"""
79
-
80
- @tool
81
- def transcribe(self, file_path: str) -> str:
82
- """Transcribe audio from file
83
- Args:
84
- file_path (str): Path to audio file
85
- Returns:
86
- str: Transcription text
87
- """
88
- return f"Transcribed audio from '{file_path}' (simulated)."
89
 
90
  class MagAgent:
91
  def __init__(self):
@@ -107,7 +107,7 @@ class MagAgent:
107
  GoogleSearchTool(),
108
  WikipediaSearchTool(),
109
  ImageAnalysisTool(),
110
- LocalFileAudioTool()
111
  ]
112
  )
113
  print("MagAgent initialized.")
 
73
  return f"The image description: '{response}'"
74
 
75
 
76
+ #@tool
77
+ #class LocalFileAudioTool:
78
+ # """Tool for transcribing audio files"""
79
+ #
80
+ # @tool
81
+ # def transcribe(self, file_path: str) -> str:
82
+ # """Transcribe audio from file
83
+ # Args:
84
+ # file_path (str): Path to audio file
85
+ # Returns:
86
+ # str: Transcription text
87
+ # """
88
+ # return f"Transcribed audio from '{file_path}' (simulated)."
89
 
90
  class MagAgent:
91
  def __init__(self):
 
107
  GoogleSearchTool(),
108
  WikipediaSearchTool(),
109
  ImageAnalysisTool(),
110
+ # LocalFileAudioTool()
111
  ]
112
  )
113
  print("MagAgent initialized.")