codeteach commited on
Commit
df4431b
1 Parent(s): 16d8bf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
+