Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,9 +12,9 @@ from Gradio_UI import GradioUI
|
|
12 |
@tool
|
13 |
def get_news_headlines() -> str:
|
14 |
"""
|
15 |
-
Fetches the top news headlines from the News API for
|
16 |
This function makes a GET request to the News API to retrieve the top news headlines
|
17 |
-
for
|
18 |
formatted string. If no articles are available, it returns a message indicating that
|
19 |
no news is available. In case of a request error, it returns an error message.
|
20 |
Returns:
|
|
|
12 |
@tool
|
13 |
def get_news_headlines() -> str:
|
14 |
"""
|
15 |
+
Fetches the top news headlines from the News API for India.
|
16 |
This function makes a GET request to the News API to retrieve the top news headlines
|
17 |
+
for India. It returns the titles and sources of the top 5 articles as a
|
18 |
formatted string. If no articles are available, it returns a message indicating that
|
19 |
no news is available. In case of a request error, it returns an error message.
|
20 |
Returns:
|