harryab commited on
Commit
2607246
·
verified ·
1 Parent(s): c4e81ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
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
- """Estimates a full marathon time based on a given half-marathon time."""
 
 
 
 
 
 
 
 
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