Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,8 @@ load_dotenv()
|
|
26 |
|
27 |
|
28 |
|
29 |
-
from smolagents import Tool
|
30 |
-
from langchain_community.document_loaders import WikipediaLoader
|
31 |
|
32 |
class WikiSearchTool(Tool):
|
33 |
name = "wiki_search"
|
@@ -209,7 +209,7 @@ If the answer is a comma-separated list, apply the above rules for each element
|
|
209 |
"""
|
210 |
|
211 |
self.agent = CodeAgent(
|
212 |
-
model=model,
|
213 |
tools=[search_tool, wiki_search_tool, str_reverse_tool, keywords_extract_tool, speech_to_text_tool, visit_webpage_tool, final_answer_tool, parse_excel_to_json, video_transcription_tool],
|
214 |
add_base_tools=True
|
215 |
)
|
|
|
26 |
|
27 |
|
28 |
|
29 |
+
#from smolagents import Tool
|
30 |
+
#from langchain_community.document_loaders import WikipediaLoader
|
31 |
|
32 |
class WikiSearchTool(Tool):
|
33 |
name = "wiki_search"
|
|
|
209 |
"""
|
210 |
|
211 |
self.agent = CodeAgent(
|
212 |
+
model=self.model,
|
213 |
tools=[search_tool, wiki_search_tool, str_reverse_tool, keywords_extract_tool, speech_to_text_tool, visit_webpage_tool, final_answer_tool, parse_excel_to_json, video_transcription_tool],
|
214 |
add_base_tools=True
|
215 |
)
|