Update app.py
Browse filesAdded calculate_walking_time_paris method
app.py
CHANGED
|
@@ -9,7 +9,12 @@ from Gradio_UI import GradioUI
|
|
| 9 |
|
| 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):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# This is a placeholder function. In a real scenario, this function would call a tool to get the actual walking time.
|
| 14 |
# For now, we'll use predefined walking times for simplicity.
|
| 15 |
walking_times = {
|
|
|
|
| 9 |
|
| 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 = {
|