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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def extract_text_from_file(file_obj):
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
 
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