warhawkmonk commited on
Commit
56c3545
·
verified ·
1 Parent(s): ae0c119

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -481,9 +481,11 @@ if bg_doc:
481
 
482
 
483
  with implementation:
484
-
485
  text_lookup=retrieved_chunks
486
  pages=[]
 
 
487
  with fitz.open("temp.pdf") as doc:
488
 
489
  for page_no in range(doc.page_count):
 
481
 
482
 
483
  with implementation:
484
+ with st.spinner('Wait for it...'):
485
  text_lookup=retrieved_chunks
486
  pages=[]
487
+ buffer = bg_doc.getbuffer()
488
+ byte_data = bytes(buffer)
489
  with fitz.open("temp.pdf") as doc:
490
 
491
  for page_no in range(doc.page_count):