Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ model = OpenAIServerModel(
|
|
| 19 |
api_base="https://api.fireworks.ai/inference/v1",
|
| 20 |
model_id="accounts/fireworks/models/qwen2p5-72b-instruct",
|
| 21 |
temperature = 0.1,
|
| 22 |
-
max_tokens =
|
| 23 |
)
|
| 24 |
#top_p = 1
|
| 25 |
|
|
@@ -38,9 +38,9 @@ class BasicAgent:
|
|
| 38 |
agent = CodeAgent(
|
| 39 |
tools=[FinalAnswerTool(), DuckDuckGoSearchTool(), VisitWebpageTool()],
|
| 40 |
model=model,
|
| 41 |
-
max_steps=
|
| 42 |
verbosity_level=2,
|
| 43 |
-
planning_interval=
|
| 44 |
)
|
| 45 |
|
| 46 |
# Get the actual answer from the agent
|
|
|
|
| 19 |
api_base="https://api.fireworks.ai/inference/v1",
|
| 20 |
model_id="accounts/fireworks/models/qwen2p5-72b-instruct",
|
| 21 |
temperature = 0.1,
|
| 22 |
+
max_tokens = 1000
|
| 23 |
)
|
| 24 |
#top_p = 1
|
| 25 |
|
|
|
|
| 38 |
agent = CodeAgent(
|
| 39 |
tools=[FinalAnswerTool(), DuckDuckGoSearchTool(), VisitWebpageTool()],
|
| 40 |
model=model,
|
| 41 |
+
max_steps=20,
|
| 42 |
verbosity_level=2,
|
| 43 |
+
planning_interval=2
|
| 44 |
)
|
| 45 |
|
| 46 |
# Get the actual answer from the agent
|