Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,9 +14,9 @@ from Gradio_UI import GradioUI
|
|
| 14 |
def get_wikipedia_news(topic: str, limit: int = 5, delay: float = 0.0) -> list:
|
| 15 |
"""A tool that fetches connects to a live Wikipedia edit stream and looks for edits where the title or comment contains the given topic. If there is a match, it saves details like the page title, user, comment, and timestamp.
|
| 16 |
Args:
|
| 17 |
-
topic
|
| 18 |
-
limit
|
| 19 |
-
delay
|
| 20 |
Returns:
|
| 21 |
list: A list of edits, each containing:
|
| 22 |
- title (str): The page that was edited.
|
|
|
|
| 14 |
def get_wikipedia_news(topic: str, limit: int = 5, delay: float = 0.0) -> list:
|
| 15 |
"""A tool that fetches connects to a live Wikipedia edit stream and looks for edits where the title or comment contains the given topic. If there is a match, it saves details like the page title, user, comment, and timestamp.
|
| 16 |
Args:
|
| 17 |
+
topic: The word or phrase to search for in Wikipedia edits.
|
| 18 |
+
limit: The number of edits to collect (default: 5).
|
| 19 |
+
delay: Time in seconds to wait between edits (default: 0.0).
|
| 20 |
Returns:
|
| 21 |
list: A list of edits, each containing:
|
| 22 |
- title (str): The page that was edited.
|