Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,15 @@ from Gradio_UI import GradioUI
|
|
| 10 |
#Marathon training plan
|
| 11 |
@tool
|
| 12 |
def estimate_marathon_time(half_time: str) -> str:
|
| 13 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
try:
|
| 15 |
hours, minutes = map(int, half_time.split(":"))
|
| 16 |
total_minutes = hours * 60 + minutes
|
|
|
|
| 10 |
#Marathon training plan
|
| 11 |
@tool
|
| 12 |
def estimate_marathon_time(half_time: str) -> str:
|
| 13 |
+
"""
|
| 14 |
+
Estimates a full marathon time based on a given half-marathon time.
|
| 15 |
+
|
| 16 |
+
Args:
|
| 17 |
+
half_time (str): The recorded half-marathon time in the format HH:MM.
|
| 18 |
+
|
| 19 |
+
Returns:
|
| 20 |
+
str: The estimated full marathon time in HH:MM format.
|
| 21 |
+
"""
|
| 22 |
try:
|
| 23 |
hours, minutes = map(int, half_time.split(":"))
|
| 24 |
total_minutes = hours * 60 + minutes
|