Writo commited on
Commit
8b45cb1
·
1 Parent(s): 8d0ad92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -50,9 +50,9 @@ def main():
50
  page_text = page.extract_text() or ""
51
  text += page_text
52
 
53
- if not text:
54
- st.write("No text could be extracted from the PDFs.")
55
- return
56
 
57
  processing_time = time.time() - start_time
58
  logging.info(f"Total PDF processing time: {processing_time} seconds")
 
50
  page_text = page.extract_text() or ""
51
  text += page_text
52
 
53
+ if not text:
54
+ st.write("No text could be extracted from the PDFs.")
55
+ return
56
 
57
  processing_time = time.time() - start_time
58
  logging.info(f"Total PDF processing time: {processing_time} seconds")