umairahmad1789 commited on
Commit
f4c556f
1 Parent(s): 6482170

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
 
3
- def file_type(file_path, allowed_extensions=['pdf', 'pptx', 'docx', 'jpeg', 'png', 'jpg']):
4
 
5
  _, extension = os.path.splitext(file_path)
6
  extension = extension.lower()[1:] # Remove the dot and convert to lowercase
 
1
  import os
2
 
3
+ def file_type(file_path, allowed_extensions=['pdf', 'pptx', 'docx', 'jpeg', 'png', 'jpg', 'webp']):
4
 
5
  _, extension = os.path.splitext(file_path)
6
  extension = extension.lower()[1:] # Remove the dot and convert to lowercase