Spaces:
Sleeping
Sleeping
feat: add more tools (v2)
Browse files
app.py
CHANGED
|
@@ -9,9 +9,12 @@ import copy
|
|
| 9 |
from basic_agent import ToolAgent
|
| 10 |
from tools import (
|
| 11 |
search_and_extract,
|
|
|
|
| 12 |
load_youtube_transcript,
|
| 13 |
search_and_extract_from_wikipedia,
|
| 14 |
image_query_tool,
|
|
|
|
|
|
|
| 15 |
)
|
| 16 |
|
| 17 |
|
|
@@ -83,9 +86,12 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 83 |
agent = ToolAgent(
|
| 84 |
tools=[
|
| 85 |
search_and_extract,
|
|
|
|
| 86 |
load_youtube_transcript,
|
| 87 |
search_and_extract_from_wikipedia,
|
| 88 |
image_query_tool,
|
|
|
|
|
|
|
| 89 |
],
|
| 90 |
backstory=TOOL_USE_SYS_PROMPT
|
| 91 |
)
|
|
|
|
| 9 |
from basic_agent import ToolAgent
|
| 10 |
from tools import (
|
| 11 |
search_and_extract,
|
| 12 |
+
youtube_search_tool,
|
| 13 |
load_youtube_transcript,
|
| 14 |
search_and_extract_from_wikipedia,
|
| 15 |
image_query_tool,
|
| 16 |
+
transcribe_audio,
|
| 17 |
+
read_file_tool
|
| 18 |
)
|
| 19 |
|
| 20 |
|
|
|
|
| 86 |
agent = ToolAgent(
|
| 87 |
tools=[
|
| 88 |
search_and_extract,
|
| 89 |
+
youtube_search_tool,
|
| 90 |
load_youtube_transcript,
|
| 91 |
search_and_extract_from_wikipedia,
|
| 92 |
image_query_tool,
|
| 93 |
+
transcribe_audio,
|
| 94 |
+
read_file_tool
|
| 95 |
],
|
| 96 |
backstory=TOOL_USE_SYS_PROMPT
|
| 97 |
)
|