Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import textwrap
|
|
| 7 |
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
| 8 |
|
| 9 |
# Extract text from PDF
|
| 10 |
-
def extract_text_from_pdf(
|
| 11 |
text = ""
|
| 12 |
#with fitz.open(stream=file_obj.read(), filetype="pdf") as doc:
|
| 13 |
with fitz.open(pdf_file.name) as doc:
|
|
|
|
| 7 |
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
| 8 |
|
| 9 |
# Extract text from PDF
|
| 10 |
+
def extract_text_from_pdf(pdf_file):
|
| 11 |
text = ""
|
| 12 |
#with fitz.open(stream=file_obj.read(), filetype="pdf") as doc:
|
| 13 |
with fitz.open(pdf_file.name) as doc:
|