gabrielwithhappy commited on
Commit
9e57c35
1 Parent(s): 0e601b6

limit news article length for the summary model

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ class news_collector:
61
  news_links = self.get_news_links()
62
  for news_url in news_links:
63
  article = self.get_new_parser(news_url)
64
- self.examples.append(get_summary(article.text))
65
 
66
 
67
 
 
61
  news_links = self.get_news_links()
62
  for news_url in news_links:
63
  article = self.get_new_parser(news_url)
64
+ self.examples.append(get_summary(article.text[:1000]))
65
 
66
 
67