tony346 commited on
Commit
dcf37d8
1 Parent(s): 043f2be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 == 'application/octet-stream':
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':