Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def fetch_and_summarize_news(arg: str = None) -> str:
|
|
| 34 |
sanitized_articles.append(f"Title: {title}\nDescription: {description}")
|
| 35 |
|
| 36 |
news_text = "\n\n".join(sanitized_articles)
|
| 37 |
-
prompt = f"Summarize the following news articles:\n\n{news_text}. Please do not write the title. The summary should be in
|
| 38 |
|
| 39 |
# Generate the summary
|
| 40 |
summary = llm(prompt)
|
|
|
|
| 34 |
sanitized_articles.append(f"Title: {title}\nDescription: {description}")
|
| 35 |
|
| 36 |
news_text = "\n\n".join(sanitized_articles)
|
| 37 |
+
prompt = f"Summarize the following news articles:\n\n{news_text}. Please do not write the title. The summary should be in point for each news."
|
| 38 |
|
| 39 |
# Generate the summary
|
| 40 |
summary = llm(prompt)
|