Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import pipeline
|
|
9 |
import fitz # PyMuPDF
|
10 |
|
11 |
# Load a summarization model from Hugging Face
|
12 |
-
summarizer = pipeline("summarization")
|
13 |
|
14 |
def extract_text_from_pdf(pdf_file):
|
15 |
text = ""
|
@@ -108,3 +108,4 @@ interface.launch()
|
|
108 |
|
109 |
|
110 |
|
|
|
|
9 |
import fitz # PyMuPDF
|
10 |
|
11 |
# Load a summarization model from Hugging Face
|
12 |
+
summarizer = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
|
13 |
|
14 |
def extract_text_from_pdf(pdf_file):
|
15 |
text = ""
|
|
|
108 |
|
109 |
|
110 |
|
111 |
+
|