Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def process_file(file):
|
|
59 |
else:
|
60 |
file_path = file
|
61 |
|
62 |
-
if file_path.lower().endswith('
|
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."
|