-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Describe the bug
I can't upload a pdf.
To Reproduce
try to upload a pdf
Expected behaviour
I guess it should summarize it
Screenshots

Traceback (most recent call last): File "/opt/anaconda3/lib/python3.8/site-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/opt/anaconda3/lib/python3.8/site-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/opt/anaconda3/lib/python3.8/site-packages/flask/app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "/opt/anaconda3/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise raise value File "/opt/anaconda3/lib/python3.8/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/opt/anaconda3/lib/python3.8/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "text-sum-core.py", line 44, in result_pdff out_text_file.write(da.summarize(f.filename)) File "/opt/anaconda3/lib/python3.8/site-packages/abberivator_flow-0.0.2-py3.8.egg/abberivator_flow/document_abberivator.py", line 20, in summarize return pdf_a.summarize(file_path) File "/opt/anaconda3/lib/python3.8/site-packages/abberivator_flow-0.0.2-py3.8.egg/abberivator_flow/pdf_abberivator.py", line 5, in summarize pdfFileObj = open(pdf_file, 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'R2DBE- A Wideband Digital Backend for the Event Horizon Telescope.pdf' 127.0.0.1 - - [16/May/2021 18:30:58] "POST /result_document HTTP/1.1" 500 -
Additional context
I even added it to the path it specifies in the error and it still does not work...weird.
