Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|