Vijayashankar commited on
Commit
721e999
·
verified ·
1 Parent(s): ce6dda4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -10,14 +10,15 @@ from Gradio_UI import GradioUI
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
  def calculate_walking_time_paris(start, end) -> int:
13
- """A tool that gets the actual walking time in minutes between two places.
14
  Args:
15
  start: A string representing starting point.
16
  end: A string representing destinatin
17
  """
18
  # This is a placeholder function. In a real scenario, this function would call a tool to get the actual walking time.
19
  # For now, we'll use predefined walking times for simplicity.
20
- walking_times = {
 
21
  ("Eiffel Tower", "Champ de Mars"): 9,
22
  ("Champ de Mars", "Musée de l'Orangerie"): 11,
23
  ("Musée de l'Orangerie", "Pont Alexandre III"): 8,
@@ -28,6 +29,7 @@ def calculate_walking_time_paris(start, end) -> int:
28
  ("Musée Rodin", "Pont de l'Alma"): 7,
29
  ("Pont de l'Alma", "Basilique du Sacré-Cœur"): 13
30
  }
 
31
  return walking_times.get((start, end), 20)
32
 
33
  @tool
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
  def calculate_walking_time_paris(start, end) -> int:
13
+ """A tool that gets the actual walking time in minutes between two places.
14
  Args:
15
  start: A string representing starting point.
16
  end: A string representing destinatin
17
  """
18
  # This is a placeholder function. In a real scenario, this function would call a tool to get the actual walking time.
19
  # For now, we'll use predefined walking times for simplicity.
20
+ walking_times =
21
+ {
22
  ("Eiffel Tower", "Champ de Mars"): 9,
23
  ("Champ de Mars", "Musée de l'Orangerie"): 11,
24
  ("Musée de l'Orangerie", "Pont Alexandre III"): 8,
 
29
  ("Musée Rodin", "Pont de l'Alma"): 7,
30
  ("Pont de l'Alma", "Basilique du Sacré-Cœur"): 13
31
  }
32
+
33
  return walking_times.get((start, end), 20)
34
 
35
  @tool