Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,12 +26,14 @@ def cloud_mountain_color(height:int)-> str:
|
|
| 26 |
Args:
|
| 27 |
height: the height of the cloud mountain
|
| 28 |
"""
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
| 35 |
|
| 36 |
|
| 37 |
@tool
|
|
|
|
| 26 |
Args:
|
| 27 |
height: the height of the cloud mountain
|
| 28 |
"""
|
| 29 |
+
try:
|
| 30 |
+
color = "green"
|
| 31 |
+
if height > 1000:
|
| 32 |
+
color = "blue"
|
| 33 |
+
|
| 34 |
+
return color
|
| 35 |
+
except Exception as e:
|
| 36 |
+
return f"Error determining the cloud mountain color : {str(e)}"
|
| 37 |
|
| 38 |
|
| 39 |
@tool
|