amitak0707 commited on
Commit
981cf05
·
verified ·
1 Parent(s): 682ecf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,7 +67,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
67
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
68
 
69
 
70
- final_answer = [FinalAnswerTool(), travel_planner_with_images]
71
 
72
  # 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:
73
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -88,7 +88,7 @@ with open("prompts.yaml", 'r') as stream:
88
 
89
  agent = CodeAgent(
90
  model=model,
91
- tools=[final_answer], ## add your tools here (don't remove final answer)
92
  max_steps=6,
93
  verbosity_level=1,
94
  grammar=None,
 
67
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
68
 
69
 
70
+ final_answer = FinalAnswerTool()
71
 
72
  # 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:
73
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
88
 
89
  agent = CodeAgent(
90
  model=model,
91
+ tools=[final_answer, travel_planner_with_images], ## add your tools here (don't remove final answer)
92
  max_steps=6,
93
  verbosity_level=1,
94
  grammar=None,