Erfan97 commited on
Commit
b46e848
·
verified ·
1 Parent(s): 94df6f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -10,17 +10,17 @@ from Gradio_UI import GradioUI
10
 
11
  @tool
12
  def name_meaning(name: str) -> str:
13
- """Find the meaning and origin of a given name by searching reliable sources.
14
  Args:
15
- name: A first name (e.g., 'Erfan', 'Sara', 'Michael').
16
  """
17
  return (
18
- f"Find the meaning, origin, and common interpretations of the name '{name}'. "
19
- f"Use web search and summarize in 3-5 bullet points. "
20
- f"Also mention the culture/language of origin and any notable variants."
21
  )
22
 
23
 
 
24
  @tool
25
  def get_current_time_in_timezone(timezone: str) -> str:
26
  """A tool that fetches the current local time in a specified timezone.
 
10
 
11
  @tool
12
  def name_meaning(name: str) -> str:
13
+ """Find meaning and origin of a given name using web search.
14
  Args:
15
+ name: Name to look up.
16
  """
17
  return (
18
+ f"Use DuckDuckGoSearchTool to search for the meaning and origin of '{name}'. "
19
+ f"Then summarize in 35 bullet points. Include origin/culture and variants."
 
20
  )
21
 
22
 
23
+
24
  @tool
25
  def get_current_time_in_timezone(timezone: str) -> str:
26
  """A tool that fetches the current local time in a specified timezone.