Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
33 |
except Exception as e:
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
-
@tool
|
37 |
def convert_units(value: float, from_unit: str, to_unit: str) -> str:
|
38 |
"""Converts common units (length, weight, temperature).
|
39 |
Args:
|
|
|
33 |
except Exception as e:
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
+
@tool(description="Converts between common units (length, weight, temperature). Useful for unit conversion tasks.")
|
37 |
def convert_units(value: float, from_unit: str, to_unit: str) -> str:
|
38 |
"""Converts common units (length, weight, temperature).
|
39 |
Args:
|