yahoo2010 commited on
Commit
19ed52f
·
verified ·
1 Parent(s): 2628a5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,7 +36,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
36
  except Exception as e:
37
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
38
 
39
- @tool #added
40
  def get_hugging_face_top_daily_paper() -> str:
41
  """
42
  This is a tool that returns the most upvoted paper on Hugging Face daily papers.
@@ -89,7 +89,7 @@ with open("prompts.yaml", 'r') as stream:
89
 
90
  agent = CodeAgent(
91
  model=model,
92
- tools=[get_hugging_face_top_daily_paper], ## add your tools here (don't remove final answer) #1-final_answer #2-image_generation_tool #3-
93
  max_steps=6,
94
  verbosity_level=1,
95
  grammar=None,
 
36
  except Exception as e:
37
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
38
 
39
+ @tool #added, ask: today's top paper
40
  def get_hugging_face_top_daily_paper() -> str:
41
  """
42
  This is a tool that returns the most upvoted paper on Hugging Face daily papers.
 
89
 
90
  agent = CodeAgent(
91
  model=model,
92
+ tools=[get_current_time_in_timezone], ## add your tools here (don't remove final answer) #1-final_answer #2-get_hugging_face_top_daily_paper #3-get_current_time_in_timezone
93
  max_steps=6,
94
  verbosity_level=1,
95
  grammar=None,