Yuhao Tsui commited on
Commit
789efbc
·
1 Parent(s): 1f5bc27

fix: Delete hardcode (#1464)

Browse files

### What problem does this PR solve?

After checking the language of the pdf, the line will hardcode the
language into Chinese

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Files changed (1) hide show
  1. deepdoc/parser/pdf_parser.py +0 -1
deepdoc/parser/pdf_parser.py CHANGED
@@ -999,7 +999,6 @@ class RAGFlowPdfParser:
999
  self.is_english = True
1000
  else:
1001
  self.is_english = False
1002
- self.is_english = False
1003
 
1004
  st = timer()
1005
  for i, img in enumerate(self.page_images):
 
999
  self.is_english = True
1000
  else:
1001
  self.is_english = False
 
1002
 
1003
  st = timer()
1004
  for i, img in enumerate(self.page_images):