harryab commited on
Commit
8fe125c
·
verified ·
1 Parent(s): 65a6e69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -12,11 +12,7 @@ from Gradio_UI import GradioUI
12
  def estimate_marathon_time(marathon_time: str) -> str:
13
  """Estimates a full marathon time based on a given marathon time.
14
 
15
- Args:
16
- marathon_time (str): The marathon time in HH:MM format.
17
-
18
- Returns:
19
- str: The estimated marathon time.
20
  """
21
  try:
22
  hours, minutes = map(int, marathon_time.split(":"))
@@ -27,7 +23,6 @@ def estimate_marathon_time(marathon_time: str) -> str:
27
  return f"{full_hours}:{full_minutes:02d}"
28
  except:
29
  return "Invalid marathon time format. Please use HH:MM."
30
-
31
  @tool
32
  def check_missing_info() -> str:
33
  """Checks if required info is missing and asks for it."""
 
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
  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."""