Marthee commited on
Commit
4d6b875
·
verified ·
1 Parent(s): 0efb828

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def view_pdf():
77
  print("Error during PDF extraction:", e)
78
  return "PDF could not be processed.", 500
79
 
80
- if pdf_content is None or not pdf_content.startswith(b"%PDF"):
81
  return "PDF content not found or broken.", 404
82
 
83
  return send_file(
 
77
  print("Error during PDF extraction:", e)
78
  return "PDF could not be processed.", 500
79
 
80
+ if pdf_content is None :
81
  return "PDF content not found or broken.", 404
82
 
83
  return send_file(