Update app.py
Browse files
app.py
CHANGED
|
@@ -40,14 +40,16 @@ def secret_word() -> str:
|
|
| 40 |
|
| 41 |
@tool
|
| 42 |
def on_this_day(date: str) -> str:
|
| 43 |
-
"""
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
| 47 |
|
| 48 |
Returns:
|
| 49 |
-
str: A formatted string summarizing a notable event on that date,
|
| 50 |
-
|
| 51 |
"""
|
| 52 |
|
| 53 |
try:
|
|
@@ -81,6 +83,7 @@ def on_this_day(date: str) -> str:
|
|
| 81 |
|
| 82 |
|
| 83 |
|
|
|
|
| 84 |
final_answer = FinalAnswerTool()
|
| 85 |
|
| 86 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
|
|
|
| 40 |
|
| 41 |
@tool
|
| 42 |
def on_this_day(date: str) -> str:
|
| 43 |
+
"""
|
| 44 |
+
Searches for notable historical events that happened on a given date using DuckDuckGo.
|
| 45 |
+
|
| 46 |
+
Arguments:
|
| 47 |
+
date (str): The date to search for, formatted as 'Day Month Year' (e.g., '18 March 1995')
|
| 48 |
+
or 'Day Month' (e.g., '18 March') if the year is unknown.
|
| 49 |
|
| 50 |
Returns:
|
| 51 |
+
str: A formatted string summarizing a notable event on that date, with a source link.
|
| 52 |
+
If no event is found, it states that nothing of note occurred.
|
| 53 |
"""
|
| 54 |
|
| 55 |
try:
|
|
|
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
+
|
| 87 |
final_answer = FinalAnswerTool()
|
| 88 |
|
| 89 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|