Spaces:
Build error
Build error
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -8,6 +8,20 @@ import openpyxl
|
|
| 8 |
import wikipedia
|
| 9 |
import pandas as pd
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
class WikipediaTool(Tool):
|
| 12 |
name = "wikipedia_api"
|
| 13 |
description = "Returns the contents of a wikipedia article through a direct API call."
|
|
|
|
| 8 |
import wikipedia
|
| 9 |
import pandas as pd
|
| 10 |
|
| 11 |
+
class MediaTool(Tool):
|
| 12 |
+
name = "media_tool"
|
| 13 |
+
description = "Used for deciphering video and audio files."
|
| 14 |
+
inputs = {
|
| 15 |
+
"title": {
|
| 16 |
+
"type": "string",
|
| 17 |
+
"description": "The name of the media file to transcribe."
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
output_type = "string"
|
| 21 |
+
|
| 22 |
+
def forward(self, title: str):
|
| 23 |
+
return "this tool hasn't been implemented yet. Please return 0 if the task cannot be solved without knowing the contents of this file."
|
| 24 |
+
|
| 25 |
class WikipediaTool(Tool):
|
| 26 |
name = "wikipedia_api"
|
| 27 |
description = "Returns the contents of a wikipedia article through a direct API call."
|