perceptualmotion commited on
Commit
ac7c682
·
verified ·
1 Parent(s): f848151

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -40,7 +40,15 @@ def secret_word() -> str:
40
 
41
  @tool
42
  def on_this_day(date: str) -> str:
43
- """Search for notable historical events that happened on a given date using DuckDuckGo."""
 
 
 
 
 
 
 
 
44
 
45
  try:
46
  # Construct the search query
@@ -72,6 +80,7 @@ def on_this_day(date: str) -> str:
72
 
73
 
74
 
 
75
  final_answer = FinalAnswerTool()
76
 
77
  # 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
+ """Search for notable historical events that happened on a given date using DuckDuckGo.
44
+
45
+ Args:
46
+ date (str): A string representing the date to search for (e.g., '18 March 1995' or '27 February').
47
+
48
+ Returns:
49
+ str: A formatted string summarizing a notable event on that date, along with a source link.
50
+ If no event is found, it states that nothing of note occurred.
51
+ """
52
 
53
  try:
54
  # Construct the search query
 
80
 
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: