ayoub-dhibi commited on
Commit
65b6861
·
verified ·
1 Parent(s): d087300

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -34,6 +34,12 @@ def get_current_time_in_timezone(timezone: str) -> str:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
 
 
 
 
 
 
 
37
  final_answer = FinalAnswerTool()
38
 
39
  # 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:
@@ -58,9 +64,6 @@ custom_role_conversions=None,
58
  '''
59
 
60
 
61
- # Import tool from Hub
62
- @tool
63
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
64
 
65
  with open("prompts.yaml", 'r') as stream:
66
  prompt_templates = yaml.safe_load(stream)
 
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
 
37
+ # Import tool from Hub
38
+
39
+ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
40
+
41
+ ddgs = DuckDuckGoSearchTool()
42
+
43
  final_answer = FinalAnswerTool()
44
 
45
  # 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:
 
64
  '''
65
 
66
 
 
 
 
67
 
68
  with open("prompts.yaml", 'r') as stream:
69
  prompt_templates = yaml.safe_load(stream)