Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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
|