vinnnz commited on
Commit
8f12d15
·
verified ·
1 Parent(s): a86069a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
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
- color = "green"
30
- if height > 1000:
31
- color = "blue"
32
-
33
- return color
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