Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,10 @@ search_tool = DuckDuckGoSearchTool()
|
|
| 89 |
visit_webpage_tool = VisitWebpageTool()
|
| 90 |
|
| 91 |
# ืืืืจืช ืืืืื (ื"ืืื")
|
| 92 |
-
model = InferenceClientModel(
|
|
|
|
|
|
|
|
|
|
| 93 |
manager_system_prompt="""
|
| 94 |
You are a general AI assistant. I will ask you a question. Report your thoughts,
|
| 95 |
and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
|
|
@@ -102,7 +105,7 @@ and write the digits in plain text unless specified otherwise.
|
|
| 102 |
apply the above rules depending of whether the element to be put in the list is a number or a string."""
|
| 103 |
def create_new_agent():
|
| 104 |
return CodeAgent(
|
| 105 |
-
tools=[search_tool, download_task_file, visit_webpage_tool],
|
| 106 |
model=model,
|
| 107 |
instructions=manager_system_prompt,
|
| 108 |
max_steps=12,
|
|
|
|
| 89 |
visit_webpage_tool = VisitWebpageTool()
|
| 90 |
|
| 91 |
# ืืืืจืช ืืืืื (ื"ืืื")
|
| 92 |
+
model = InferenceClientModel(
|
| 93 |
+
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 94 |
+
token=os.getenv("HF_TOKEN")
|
| 95 |
+
)
|
| 96 |
manager_system_prompt="""
|
| 97 |
You are a general AI assistant. I will ask you a question. Report your thoughts,
|
| 98 |
and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
|
|
|
|
| 105 |
apply the above rules depending of whether the element to be put in the list is a number or a string."""
|
| 106 |
def create_new_agent():
|
| 107 |
return CodeAgent(
|
| 108 |
+
tools=[search_tool, download_task_file, visit_webpage_tool, analyze_image_tool],
|
| 109 |
model=model,
|
| 110 |
instructions=manager_system_prompt,
|
| 111 |
max_steps=12,
|