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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -40,14 +40,16 @@ 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
- 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:
@@ -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: