Sborole commited on
Commit
bb4b0e1
·
verified ·
1 Parent(s): 5191a0d

Update tools/ReadAudioTool.py

Browse files
Files changed (1) hide show
  1. tools/ReadAudioTool.py +6 -1
tools/ReadAudioTool.py CHANGED
@@ -3,7 +3,12 @@ from smolagents.tools import Tool
3
  class ReadAudioTool(Tool):
4
  name = "read_audio"
5
  description = "Reads an audio file and returns base64 so Gemini can transcribe it."
6
- inputs = {"file_path": {"type": "string"}}
 
 
 
 
 
7
  output_type = "string"
8
 
9
  def forward(self, file_path: str) -> str:
 
3
  class ReadAudioTool(Tool):
4
  name = "read_audio"
5
  description = "Reads an audio file and returns base64 so Gemini can transcribe it."
6
+ inputs = {
7
+ "file_path": {
8
+ "type": "string",
9
+ "description": "The full path of the text file to read"
10
+ }
11
+ }
12
  output_type = "string"
13
 
14
  def forward(self, file_path: str) -> str: