vishwask commited on
Commit
9b6006a
·
verified ·
1 Parent(s): aa7ae78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -231,7 +231,7 @@ def demo():
231
 
232
  def process_pdfs():
233
  # List all PDF files in the directory
234
- pdf_files = [os.path.join(pdf_directory, file) for file in os.listdir(pdf_directory) if file.endswith(".pdf")]
235
  return pdf_files
236
 
237
  # Create a dictionary with the necessary information
 
231
 
232
  def process_pdfs():
233
  # List all PDF files in the directory
234
+ pdf_files = [os.path.join(pdf_directory, file) for file in os.listdir(pdf_directory) if file.endswith(".txt")]
235
  return pdf_files
236
 
237
  # Create a dictionary with the necessary information