Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,14 @@ from Gradio_UI import GradioUI
|
|
| 10 |
#Marathon training plan
|
| 11 |
@tool
|
| 12 |
def fetch_marathon_plan(goal_time: str) -> str:
|
| 13 |
-
"""Fetches a marathon training plan based on a goal time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
search_tool = DuckDuckGoSearchTool()
|
| 15 |
query = f"marathon training plan {goal_time} site:runnersworld.com"
|
| 16 |
results = search_tool.search(query)
|
|
|
|
| 10 |
#Marathon training plan
|
| 11 |
@tool
|
| 12 |
def fetch_marathon_plan(goal_time: str) -> str:
|
| 13 |
+
"""Fetches a marathon training plan based on a goal time.
|
| 14 |
+
|
| 15 |
+
Args:
|
| 16 |
+
goal_time: Desired marathon completion time (e.g., '4:00', '3:30').
|
| 17 |
+
|
| 18 |
+
Returns:
|
| 19 |
+
A link to a training plan or summary of key details.
|
| 20 |
+
"""
|
| 21 |
search_tool = DuckDuckGoSearchTool()
|
| 22 |
query = f"marathon training plan {goal_time} site:runnersworld.com"
|
| 23 |
results = search_tool.search(query)
|