Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,12 @@ search_tool = DuckDuckGoSearchTool()
|
|
18 |
class WikipediaTool(Tool):
|
19 |
name = "wikipedia_search"
|
20 |
description = "Search Wikipedia for a given topic and return a concise summary."
|
21 |
-
inputs = {
|
|
|
|
|
|
|
|
|
|
|
22 |
output_type = "string"
|
23 |
|
24 |
def forward(self, query: str) -> str:
|
@@ -37,7 +42,12 @@ class WikipediaTool(Tool):
|
|
37 |
class AudioTranscriptionTool(Tool):
|
38 |
name = "audio_transcriber"
|
39 |
description = "Transcribes an uploaded audio file to text using Whisper."
|
40 |
-
inputs = {
|
|
|
|
|
|
|
|
|
|
|
41 |
output_type = "string"
|
42 |
|
43 |
def forward(self, audio: str) -> str:
|
@@ -58,7 +68,12 @@ class AudioTranscriptionTool(Tool):
|
|
58 |
class ExcelReaderTool(Tool):
|
59 |
name = "excel_reader"
|
60 |
description = "Reads uploaded Excel file and summarizes sheet data."
|
61 |
-
inputs = {
|
|
|
|
|
|
|
|
|
|
|
62 |
output_type = "string"
|
63 |
|
64 |
def forward(self, excel) -> str:
|
|
|
18 |
class WikipediaTool(Tool):
|
19 |
name = "wikipedia_search"
|
20 |
description = "Search Wikipedia for a given topic and return a concise summary."
|
21 |
+
inputs = {
|
22 |
+
"query": {
|
23 |
+
"type": "string",
|
24 |
+
"description": "The topic to search on Wikipedia"
|
25 |
+
}
|
26 |
+
}
|
27 |
output_type = "string"
|
28 |
|
29 |
def forward(self, query: str) -> str:
|
|
|
42 |
class AudioTranscriptionTool(Tool):
|
43 |
name = "audio_transcriber"
|
44 |
description = "Transcribes an uploaded audio file to text using Whisper."
|
45 |
+
inputs = {
|
46 |
+
"audio": {
|
47 |
+
"type": "audio",
|
48 |
+
"description": "The audio file to transcribe"
|
49 |
+
}
|
50 |
+
}
|
51 |
output_type = "string"
|
52 |
|
53 |
def forward(self, audio: str) -> str:
|
|
|
68 |
class ExcelReaderTool(Tool):
|
69 |
name = "excel_reader"
|
70 |
description = "Reads uploaded Excel file and summarizes sheet data."
|
71 |
+
inputs = {
|
72 |
+
"excel": {
|
73 |
+
"type": "file",
|
74 |
+
"description": "The Excel (.xlsx) file to summarize"
|
75 |
+
}
|
76 |
+
}
|
77 |
output_type = "string"
|
78 |
|
79 |
def forward(self, excel) -> str:
|