vinnnz commited on
Commit
a575233
·
verified ·
1 Parent(s): 13d6e6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ def mountain_color(height:int)-> str:
30
  if height > 1000:
31
  color = "blue"
32
 
33
- return color
34
  except Exception as e:
35
  return f"Error determining the mountain color : {str(e)}"
36
 
@@ -84,7 +84,7 @@ with open("prompts.yaml", 'r') as stream:
84
 
85
  agent = CodeAgent(
86
  model=model,
87
- tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
88
  max_steps=6,
89
  verbosity_level=1,
90
  grammar=None,
 
30
  if height > 1000:
31
  color = "blue"
32
 
33
+ return f"The mountain color is color {color}"
34
  except Exception as e:
35
  return f"Error determining the mountain color : {str(e)}"
36
 
 
84
 
85
  agent = CodeAgent(
86
  model=model,
87
+ tools=[final_answer, mountain_color, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
88
  max_steps=6,
89
  verbosity_level=1,
90
  grammar=None,