Spaces:
Sleeping
Sleeping
dummy muscle gain tool
Browse files
app.py
CHANGED
|
@@ -18,6 +18,15 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 18 |
"""
|
| 19 |
return "What magic will you build ?"
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
@tool
|
| 22 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 23 |
"""A tool that fetches the current local time in a specified timezone.
|
|
|
|
| 18 |
"""
|
| 19 |
return "What magic will you build ?"
|
| 20 |
|
| 21 |
+
|
| 22 |
+
@tool
|
| 23 |
+
def get_muscle_gain(minutes_sport:int)-> int: #it's import to specify the return type
|
| 24 |
+
"""A tool that calculates the muscle gain in milligrams based on the minutes of sport
|
| 25 |
+
Args:
|
| 26 |
+
minutes_sport: The daily minutes of sport
|
| 27 |
+
"""
|
| 28 |
+
return 30 * minutes_sport * 0.021
|
| 29 |
+
|
| 30 |
@tool
|
| 31 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 32 |
"""A tool that fetches the current local time in a specified timezone.
|