Update app.py
#2
by SachinPatil13 - opened
app.py
CHANGED
|
@@ -10,11 +10,11 @@ from Gradio_UI import GradioUI
|
|
| 10 |
from typing import Union
|
| 11 |
|
| 12 |
@tool
|
| 13 |
-
def unit_converter_tool(value:int, from_unit:str, to_unit:str)-> Union[int, float, str]:
|
| 14 |
"""Converts a value from one unit to another.
|
| 15 |
|
| 16 |
Args:
|
| 17 |
-
value (
|
| 18 |
from_unit (str): The unit of the input value (e.g., "cm", "inch", "kg", "celsius").
|
| 19 |
to_unit (str): The unit to convert the value to (e.g., "meter", "feet", "lbs", "fahrenheit").
|
| 20 |
|
|
|
|
| 10 |
from typing import Union
|
| 11 |
|
| 12 |
@tool
|
| 13 |
+
def unit_converter_tool(value:Union[int, float], from_unit:str, to_unit:str)-> Union[int, float, str]:
|
| 14 |
"""Converts a value from one unit to another.
|
| 15 |
|
| 16 |
Args:
|
| 17 |
+
value (int or float): The numerical value to convert.
|
| 18 |
from_unit (str): The unit of the input value (e.g., "cm", "inch", "kg", "celsius").
|
| 19 |
to_unit (str): The unit to convert the value to (e.g., "meter", "feet", "lbs", "fahrenheit").
|
| 20 |
|