Raffaele Terribile
commited on
Modifica parametri modello
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import requests
|
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
|
7 |
-
from smolagents import CodeAgent, InferenceClientModel, VisitWebpageTool, PythonInterpreterTool, WebSearchTool, WikipediaSearchTool, FinalAnswerTool, Tool, tool # GoogleSearchTool
|
8 |
|
9 |
# (Keep Constants as is)
|
10 |
# --- Constants ---
|
@@ -38,7 +38,6 @@ class FirstAgent:
|
|
38 |
FinalAnswerTool,
|
39 |
Tool(name="invert_sentence", func=invert_sentence, description="Inverts the order of characters in a sentence.")
|
40 |
],
|
41 |
-
debug=True,
|
42 |
max_iterations=10,
|
43 |
max_tokens=1000,
|
44 |
temperature=0.7
|
|
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
|
7 |
+
from smolagents import CodeAgent, InferenceClientModel, VisitWebpageTool, PythonInterpreterTool, WebSearchTool, WikipediaSearchTool, FinalAnswerTool, Tool, tool # GoogleSearchTool (usa SERPAPI_API_KEY), DuckDuckGoSearchTool
|
8 |
|
9 |
# (Keep Constants as is)
|
10 |
# --- Constants ---
|
|
|
38 |
FinalAnswerTool,
|
39 |
Tool(name="invert_sentence", func=invert_sentence, description="Inverts the order of characters in a sentence.")
|
40 |
],
|
|
|
41 |
max_iterations=10,
|
42 |
max_tokens=1000,
|
43 |
temperature=0.7
|