Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,18 +38,18 @@ class BasicAgent:
|
|
| 38 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 39 |
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
|
| 54 |
# url = "https://api.fireworks.ai/inference/v1/chat/completions"
|
| 55 |
# payload = {
|
|
|
|
| 38 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 39 |
|
| 40 |
|
| 41 |
+
agent = CodeAgent(
|
| 42 |
+
tools=[final_answer, DuckDuckGoSearchTool],#[detection_tool],
|
| 43 |
+
model=model,
|
| 44 |
+
max_steps=5,
|
| 45 |
+
verbosity_level=1,
|
| 46 |
+
planning_interval=2,
|
| 47 |
+
#additional_authorized_imports=["json", "from PIL import Image, ImageDraw, ImageFont", "import matplotlib.pyplot as plt", "from typing import List, Dict"],
|
| 48 |
+
#managed_agents=[detection_agent]
|
| 49 |
+
description="Solves the task"
|
| 50 |
+
)
|
| 51 |
+
|
| 52 |
+
fixed_answer = agent
|
| 53 |
|
| 54 |
# url = "https://api.fireworks.ai/inference/v1/chat/completions"
|
| 55 |
# payload = {
|