Yaz Hobooti commited on
Commit
5065cea
·
1 Parent(s): 9295381

Fix indentation error in spellchecker import block

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -34,10 +34,7 @@ except Exception:
34
  HAS_OCR = False
35
 
36
  try:
37
- try:
38
  from spellchecker import SpellChecker
39
- except ImportError:
40
- from pyspellchecker import SpellChecker
41
  HAS_SPELLCHECK = True
42
  except Exception:
43
  try:
@@ -507,7 +504,10 @@ import pytesseract
507
  try:
508
  from spellchecker import SpellChecker
509
  except ImportError:
510
- from pyspellchecker import SpellChecker
 
 
 
511
 
512
  # If these existed in your file, keep them; otherwise define defaults to avoid NameError
513
  try:
 
34
  HAS_OCR = False
35
 
36
  try:
 
37
  from spellchecker import SpellChecker
 
 
38
  HAS_SPELLCHECK = True
39
  except Exception:
40
  try:
 
504
  try:
505
  from spellchecker import SpellChecker
506
  except ImportError:
507
+ try:
508
+ from pyspellchecker import SpellChecker
509
+ except ImportError:
510
+ SpellChecker = None
511
 
512
  # If these existed in your file, keep them; otherwise define defaults to avoid NameError
513
  try: