roger33303 commited on
Commit
74705d6
·
verified ·
1 Parent(s): e86e4e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,9 +33,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
-
37
  # Import tool from Hub
38
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
39
 
40
 
41
  final_answer = FinalAnswerTool()
@@ -58,7 +58,7 @@ with open("prompts.yaml", 'r') as stream:
58
 
59
  agent = CodeAgent(
60
  model=model,
61
- tools=[final_answer,get_current_time_in_timezone,string_reverse_tool,image_generation_tool], ## add your tools here (don't remove final answer)
62
  max_steps=6,
63
  verbosity_level=1,
64
  grammar=None,
 
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
+ # web_search_tool =DuckDuckGoSearchTool()
37
  # Import tool from Hub
38
+ # image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
39
 
40
 
41
  final_answer = FinalAnswerTool()
 
58
 
59
  agent = CodeAgent(
60
  model=model,
61
+ tools=[final_answer,get_current_time_in_timezone,string_reverse_tool], ## add your tools here (don't remove final answer)
62
  max_steps=6,
63
  verbosity_level=1,
64
  grammar=None,