Browse Source

Fix pdf applying Q&A issue. (#4599)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.16.0
Kevin Hu 9 months ago
parent
commit
13f04b7cca
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      rag/app/qa.py

+ 1
- 1
rag/app/qa.py View File

@@ -177,7 +177,7 @@ class Pdf(PdfParser):
tbl_tag = "@@{}\t{:.1f}\t{:.1f}\t{:.1f}\t{:.1f}##" \
.format(tbl_pn, tbl_left, tbl_right, tbl_top, tbl_bottom)
_tbl_text = ''.join(tbls[tbl_index][0][1])
return tbl_pn, tbl_left, tbl_right, tbl_top, tbl_bottom, tbl_tag,
return tbl_pn, tbl_left, tbl_right, tbl_top, tbl_bottom, tbl_tag, _tbl_text


class Docx(DocxParser):

Loading…
Cancel
Save