Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,8 +62,8 @@ def extract_text_from_html(url):
|
|
62 |
except Exception as e:
|
63 |
return f"Error extracting text: {str(e)}"
|
64 |
|
65 |
-
tokenizer_s = AutoTokenizer.from_pretrained("
|
66 |
-
model_s = AutoModelForSeq2SeqLM.from_pretrained("
|
67 |
|
68 |
def summarize_article(article_text):
|
69 |
"""Summarize a given article's text."""
|
|
|
62 |
except Exception as e:
|
63 |
return f"Error extracting text: {str(e)}"
|
64 |
|
65 |
+
tokenizer_s = AutoTokenizer.from_pretrained("scieditor/extractive-summarization")
|
66 |
+
model_s = AutoModelForSeq2SeqLM.from_pretrained("scieditor/extractive-summarization")
|
67 |
|
68 |
def summarize_article(article_text):
|
69 |
"""Summarize a given article's text."""
|