Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,9 +10,10 @@ from Gradio_UI import GradioUI
|
|
| 10 |
#Marathon training plan
|
| 11 |
@tool
|
| 12 |
def estimate_marathon_time(marathon_time: str) -> str:
|
| 13 |
-
"""
|
| 14 |
-
|
| 15 |
-
|
|
|
|
| 16 |
"""
|
| 17 |
try:
|
| 18 |
hours, minutes = map(int, marathon_time.split(":"))
|
|
@@ -23,6 +24,7 @@ def estimate_marathon_time(marathon_time: str) -> str:
|
|
| 23 |
return f"{full_hours}:{full_minutes:02d}"
|
| 24 |
except:
|
| 25 |
return "Invalid marathon time format. Please use HH:MM."
|
|
|
|
| 26 |
@tool
|
| 27 |
def check_missing_info() -> str:
|
| 28 |
"""Checks if required info is missing and asks for it."""
|
|
|
|
| 10 |
#Marathon training plan
|
| 11 |
@tool
|
| 12 |
def estimate_marathon_time(marathon_time: str) -> str:
|
| 13 |
+
"""
|
| 14 |
+
Estimate a full marathon time from the given marathon time.
|
| 15 |
+
|
| 16 |
+
marathon_time (str): The marathon time in "HH:MM" format (e.g., "3:45").
|
| 17 |
"""
|
| 18 |
try:
|
| 19 |
hours, minutes = map(int, marathon_time.split(":"))
|
|
|
|
| 24 |
return f"{full_hours}:{full_minutes:02d}"
|
| 25 |
except:
|
| 26 |
return "Invalid marathon time format. Please use HH:MM."
|
| 27 |
+
|
| 28 |
@tool
|
| 29 |
def check_missing_info() -> str:
|
| 30 |
"""Checks if required info is missing and asks for it."""
|