Akshayram1 commited on
Commit
c57b3f1
·
verified ·
1 Parent(s): 6d4ac71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ web_agent = Agent(
28
  # Function to fetch the latest AI news
29
  def fetch_latest_ai_news():
30
  query = "Find the latest news about Artificial Intelligence and summarize it."
31
- response = web_agent.query(query, stream=False) # Fetch and summarize AI news
32
  return response
33
 
34
  # Streamlit App
 
28
  # Function to fetch the latest AI news
29
  def fetch_latest_ai_news():
30
  query = "Find the latest news about Artificial Intelligence and summarize it."
31
+ response = web_agent.execute(query) # Fetch and summarize AI news using 'execute' method
32
  return response
33
 
34
  # Streamlit App