Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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):
|