Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def get_recent_news(description: str) -> str:
|
|
| 64 |
# Parse the HTML content to extract plain text
|
| 65 |
soup = BeautifulSoup(html_content, "html.parser")
|
| 66 |
plain_text = soup.get_text(separator="\n", strip=True)
|
| 67 |
-
return plain_text
|
| 68 |
|
| 69 |
except requests.RequestException as e:
|
| 70 |
return f"Error fetching HTML: {str(e)}"
|
|
|
|
| 64 |
# Parse the HTML content to extract plain text
|
| 65 |
soup = BeautifulSoup(html_content, "html.parser")
|
| 66 |
plain_text = soup.get_text(separator="\n", strip=True)
|
| 67 |
+
return "Unverified. The list of possible news to consider, need to revise first: " + plain_text
|
| 68 |
|
| 69 |
except requests.RequestException as e:
|
| 70 |
return f"Error fetching HTML: {str(e)}"
|