Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import pandas as pd
|
|
7 |
from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
8 |
from huggingface_hub import InferenceClient
|
9 |
import json
|
10 |
-
from tools.final_answer import FinalAnswerTool
|
11 |
|
12 |
api_url = "https://agents-course-unit4-scoring.hf.space"
|
13 |
questions_url = f"{api_url}/questions"
|
@@ -53,12 +53,12 @@ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may
|
|
53 |
custom_role_conversions=None,
|
54 |
)
|
55 |
|
56 |
-
final_answer = FinalAnswerTool()
|
57 |
|
58 |
#Agent
|
59 |
agent = CodeAgent(
|
60 |
model=model,
|
61 |
-
tools=[final_answer], ## add your tools here (don't remove final answer)
|
62 |
max_steps=6,
|
63 |
verbosity_level=1,
|
64 |
grammar=None,
|
|
|
7 |
from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
8 |
from huggingface_hub import InferenceClient
|
9 |
import json
|
10 |
+
#from tools.final_answer import FinalAnswerTool
|
11 |
|
12 |
api_url = "https://agents-course-unit4-scoring.hf.space"
|
13 |
questions_url = f"{api_url}/questions"
|
|
|
53 |
custom_role_conversions=None,
|
54 |
)
|
55 |
|
56 |
+
#final_answer = FinalAnswerTool()
|
57 |
|
58 |
#Agent
|
59 |
agent = CodeAgent(
|
60 |
model=model,
|
61 |
+
tools=[], #tools=[final_answer], ## add your tools here (don't remove final answer)
|
62 |
max_steps=6,
|
63 |
verbosity_level=1,
|
64 |
grammar=None,
|