harryab commited on
Commit
5d84383
·
verified ·
1 Parent(s): 8fe125c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- """Estimates a full marathon time based on a given marathon time.
14
-
15
- marathon_time: The marathon time in HH:MM format.
 
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."""