Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -254,7 +254,8 @@ def read_pdf(pdf_path):
|
|
254 |
#pdf_path = 'test.pdf' #article 11
|
255 |
#pdf_path = 'https://huggingface.co/spaces/Mishmosh/MichelleAssessment3/blob/main/test.pdf' #article 11
|
256 |
|
257 |
-
text_per_page = read_pdf(received_pdf.pdf)
|
|
|
258 |
|
259 |
# This section finds the abstract. My plan was to find the end of the abstract by identifying the same font size as the text 'abstract', but it was too late
|
260 |
#to try this here since the formatting of the text has already been removed.
|
|
|
254 |
#pdf_path = 'test.pdf' #article 11
|
255 |
#pdf_path = 'https://huggingface.co/spaces/Mishmosh/MichelleAssessment3/blob/main/test.pdf' #article 11
|
256 |
|
257 |
+
#text_per_page = read_pdf(received_pdf.pdf)
|
258 |
+
text_per_page = read_pdf(pdf_content)
|
259 |
|
260 |
# This section finds the abstract. My plan was to find the end of the abstract by identifying the same font size as the text 'abstract', but it was too late
|
261 |
#to try this here since the formatting of the text has already been removed.
|