Spaces:
Runtime error
Runtime error
umairahmad1789
commited on
Commit
•
1de7505
1
Parent(s):
f4c556f
Update utils.py
Browse files
utils.py
CHANGED
@@ -4,7 +4,7 @@ def file_type(file_path, allowed_extensions=['pdf', 'pptx', 'docx', 'jpeg', 'png
|
|
4 |
|
5 |
_, extension = os.path.splitext(file_path)
|
6 |
extension = extension.lower()[1:] # Remove the dot and convert to lowercase
|
7 |
-
|
8 |
if extension in allowed_extensions:
|
9 |
return extension
|
10 |
|
|
|
4 |
|
5 |
_, extension = os.path.splitext(file_path)
|
6 |
extension = extension.lower()[1:] # Remove the dot and convert to lowercase
|
7 |
+
print("?>>>>>>>>>>>>>",extension)
|
8 |
if extension in allowed_extensions:
|
9 |
return extension
|
10 |
|