Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,8 +73,8 @@ def extract_text_from_file(file_obj):
|
|
73 |
|
74 |
# Clean up temp file
|
75 |
os.unlink(temp_path)
|
76 |
-
|
77 |
-
|
78 |
else:
|
79 |
text = "Unsupported file type. Please upload a .docx or .doc file."
|
80 |
return text
|
|
|
73 |
|
74 |
# Clean up temp file
|
75 |
os.unlink(temp_path)
|
76 |
+
except Exception as e:
|
77 |
+
text = f"Error processing DOC file: {e}"
|
78 |
else:
|
79 |
text = "Unsupported file type. Please upload a .docx or .doc file."
|
80 |
return text
|