Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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):
|