jithenderchoudary commited on
Commit
e3ee82d
·
verified ·
1 Parent(s): 587730b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -15,6 +15,11 @@ def extract_data_from_pdf(pdf_file):
15
  loader = PyMuPDFLoader(pdf_file.name)
16
  documents = loader.load()
17
 
 
 
 
 
 
18
  # Initialize list to store extracted data
19
  data = []
20
 
@@ -63,4 +68,5 @@ interface = gr.Interface(
63
  )
64
 
65
  if __name__ == "__main__":
66
- interface.launch(share=True)
 
 
15
  loader = PyMuPDFLoader(pdf_file.name)
16
  documents = loader.load()
17
 
18
+ # Print document content for debugging
19
+ print("Extracted Document Content for Debugging:")
20
+ for doc in documents:
21
+ print(doc.page_content)
22
+
23
  # Initialize list to store extracted data
24
  data = []
25
 
 
68
  )
69
 
70
  if __name__ == "__main__":
71
+ # Enable queueing and increase timeout if necessary
72
+ interface.queue(concurrency_count=1, max_size=10, timeout=300).launch(share=True)