Youlln commited on
Commit
471d2e4
·
verified ·
1 Parent(s): c7184d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -295,6 +295,8 @@ def get_current_time_in_timezone(timezone: str) -> str:
295
 
296
 
297
  final_answer = FinalAnswerTool()
 
 
298
 
299
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
300
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -306,7 +308,6 @@ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may
306
  custom_role_conversions=None,
307
  )
308
 
309
-
310
  # Import tool from Hub
311
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
312
 
@@ -314,9 +315,6 @@ with open("prompts.yaml", 'r') as stream:
314
  prompt_templates = yaml.safe_load(stream)
315
 
316
 
317
- web_search_tool = DuckDuckGoSearchTool(max_results=5) # Vous pouvez ajuster max_results selon vos besoins
318
- visit_webpage_tool = VisitWebpageTool()
319
-
320
  agent = CodeAgent(
321
  model=model,
322
  tools=[
 
295
 
296
 
297
  final_answer = FinalAnswerTool()
298
+ web_search_tool = DuckDuckGoSearchTool(max_results=5) # Vous pouvez ajuster max_results selon vos besoins
299
+ visit_webpage_tool = VisitWebpageTool()
300
 
301
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
302
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
308
  custom_role_conversions=None,
309
  )
310
 
 
311
  # Import tool from Hub
312
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
313
 
 
315
  prompt_templates = yaml.safe_load(stream)
316
 
317
 
 
 
 
318
  agent = CodeAgent(
319
  model=model,
320
  tools=[