Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ def main():
|
|
149 |
if file.type == 'text/plain':
|
150 |
#file is .txt
|
151 |
raw_text += get_text_file(file)
|
152 |
-
elif file.type
|
153 |
#file is .pdf
|
154 |
raw_text += get_pdf_text(file)
|
155 |
elif file.type == 'text/csv':
|
|
|
149 |
if file.type == 'text/plain':
|
150 |
#file is .txt
|
151 |
raw_text += get_text_file(file)
|
152 |
+
elif file.type in ['application/octet-stream', 'application/pdf']:
|
153 |
#file is .pdf
|
154 |
raw_text += get_pdf_text(file)
|
155 |
elif file.type == 'text/csv':
|