awacke1 commited on
Commit
bf7f06c
1 Parent(s): 96fe722

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -198,7 +198,10 @@ def extract_mime_type(file_str):
198
 
199
  def pdf2txt(pdf_docs):
200
  st.write(pdf_docs)
201
- st.write(extract_mime_type(str([pdf_docs])))
 
 
 
202
  text = ""
203
  for pdf in pdf_docs:
204
  pdf_reader = PdfReader(pdf)
 
198
 
199
  def pdf2txt(pdf_docs):
200
  st.write(pdf_docs)
201
+ for file in pdf_docs:
202
+ mime_type = extract_mime_type(file)
203
+ st.write(f"MIME type of file: {mime_type}")
204
+
205
  text = ""
206
  for pdf in pdf_docs:
207
  pdf_reader = PdfReader(pdf)