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