CR7CAD commited on
Commit
d8bcf0c
·
verified ·
1 Parent(s): c3138a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- 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
 
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