Daemontatox commited on
Commit
2653b40
·
verified ·
1 Parent(s): 5c0b45d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def process_file(file):
59
  else:
60
  file_path = file
61
 
62
- if file_path.lower().endswith('.pdf'):
63
  doc_state.doc_type = 'pdf'
64
  doc_state.current_doc_images, doc_state.current_doc_text = process_pdf_file(file_path)
65
  return f"PDF processed. Total pages: {len(doc_state.current_doc_images)}. You can now ask questions about the content."
 
59
  else:
60
  file_path = file
61
 
62
+ if file_path.lower().endswith('pdf'):
63
  doc_state.doc_type = 'pdf'
64
  doc_state.current_doc_images, doc_state.current_doc_text = process_pdf_file(file_path)
65
  return f"PDF processed. Total pages: {len(doc_state.current_doc_images)}. You can now ask questions about the content."