broadfield-dev commited on
Commit
36cb68f
·
verified ·
1 Parent(s): 3ee1061

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -14,6 +14,8 @@ def fetch_and_summarize(url):
14
  soup = BeautifulSoup(response.text, 'html.parser')
15
  content = soup.get_text()
16
  summary = summarizer(content[:10000]) # Limit content to avoid overwhelming the model
 
 
17
  return summary[0]['summary']
18
 
19
  def check_and_update_wikipedia(title, new_content):
 
14
  soup = BeautifulSoup(response.text, 'html.parser')
15
  content = soup.get_text()
16
  summary = summarizer(content[:10000]) # Limit content to avoid overwhelming the model
17
+ print(summary)
18
+ print(summary[0])
19
  return summary[0]['summary']
20
 
21
  def check_and_update_wikipedia(title, new_content):