Spaces:
Paused
Paused
fix: activete secret_tool. Disable web search tool
Browse files
app.py
CHANGED
|
@@ -44,10 +44,10 @@ final_answer = FinalAnswerTool()
|
|
| 44 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 45 |
|
| 46 |
model = HfApiModel(
|
| 47 |
-
max_tokens=2096,
|
| 48 |
-
temperature=0.5,
|
| 49 |
-
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 50 |
-
custom_role_conversions=None,
|
| 51 |
)
|
| 52 |
|
| 53 |
|
|
@@ -62,7 +62,8 @@ agent = CodeAgent(
|
|
| 62 |
tools=[
|
| 63 |
DuckDuckGoSearchTool,
|
| 64 |
get_current_time_in_timezone,
|
| 65 |
-
image_generation_tool,
|
|
|
|
| 66 |
final_answer], ## add your tools here (don't remove final answer)
|
| 67 |
max_steps=6,
|
| 68 |
verbosity_level=1,
|
|
|
|
| 44 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 45 |
|
| 46 |
model = HfApiModel(
|
| 47 |
+
max_tokens=2096,
|
| 48 |
+
temperature=0.5,
|
| 49 |
+
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 50 |
+
custom_role_conversions=None,
|
| 51 |
)
|
| 52 |
|
| 53 |
|
|
|
|
| 62 |
tools=[
|
| 63 |
DuckDuckGoSearchTool,
|
| 64 |
get_current_time_in_timezone,
|
| 65 |
+
# image_generation_tool,
|
| 66 |
+
secret_tool,
|
| 67 |
final_answer], ## add your tools here (don't remove final answer)
|
| 68 |
max_steps=6,
|
| 69 |
verbosity_level=1,
|