Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
from nltk.tokenize import sent_tokenize
|
|
|
4 |
|
5 |
# Initialize the summarizer pipelines (abstractive and extractive)
|
6 |
summarizer_abstractive = pipeline("summarization", model="facebook/bart-large-cnn")
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
from nltk.tokenize import sent_tokenize
|
4 |
+
pip install nltk
|
5 |
|
6 |
# Initialize the summarizer pipelines (abstractive and extractive)
|
7 |
summarizer_abstractive = pipeline("summarization", model="facebook/bart-large-cnn")
|