Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool, FinalAnswerTool, PythonInterpreterTool, VisitWebpageTool, LiteLLMModel, ToolCallingAgent
|
| 7 |
from groq import Groq
|
| 8 |
import time
|
| 9 |
|
|
@@ -25,7 +25,7 @@ class LLaMaAgent:
|
|
| 25 |
self.model.flatten_messages_as_text = True
|
| 26 |
|
| 27 |
self.agent = CodeAgent(
|
| 28 |
-
tools=[DuckDuckGoSearchTool(), FinalAnswerTool(), VisitWebpageTool(), PythonInterpreterTool()
|
| 29 |
add_base_tools=True,
|
| 30 |
model=self.model,
|
| 31 |
)
|
|
|
|
| 3 |
import requests
|
| 4 |
import inspect
|
| 5 |
import pandas as pd
|
| 6 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, FinalAnswerTool, PythonInterpreterTool, VisitWebpageTool, LiteLLMModel, ToolCallingAgent
|
| 7 |
from groq import Groq
|
| 8 |
import time
|
| 9 |
|
|
|
|
| 25 |
self.model.flatten_messages_as_text = True
|
| 26 |
|
| 27 |
self.agent = CodeAgent(
|
| 28 |
+
tools=[DuckDuckGoSearchTool(), FinalAnswerTool(), VisitWebpageTool(), PythonInterpreterTool()],
|
| 29 |
add_base_tools=True,
|
| 30 |
model=self.model,
|
| 31 |
)
|