KingNish commited on
Commit
71f65b1
·
verified ·
1 Parent(s): 22ae24a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -103,9 +103,6 @@ def read_document(file, clean=True):
103
 
104
  kind = filetype.guess(file_content)
105
 
106
- if kind is None:
107
- return "Cannot guess file type", 0 # Handle unknown file types
108
-
109
  mime = kind.mime
110
 
111
  if mime == "application/pdf":
 
103
 
104
  kind = filetype.guess(file_content)
105
 
 
 
 
106
  mime = kind.mime
107
 
108
  if mime == "application/pdf":