Kevin Hu commited on
Commit
dbca2f3
·
1 Parent(s): cc4181b

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

Browse files

### What problem does this PR solve?


### Type of change

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

Files changed (1) hide show
  1. rag/app/qa.py +1 -1
rag/app/qa.py CHANGED
@@ -177,7 +177,7 @@ class Pdf(PdfParser):
177
  tbl_tag = "@@{}\t{:.1f}\t{:.1f}\t{:.1f}\t{:.1f}##" \
178
  .format(tbl_pn, tbl_left, tbl_right, tbl_top, tbl_bottom)
179
  _tbl_text = ''.join(tbls[tbl_index][0][1])
180
- return tbl_pn, tbl_left, tbl_right, tbl_top, tbl_bottom, tbl_tag,
181
 
182
 
183
  class Docx(DocxParser):
 
177
  tbl_tag = "@@{}\t{:.1f}\t{:.1f}\t{:.1f}\t{:.1f}##" \
178
  .format(tbl_pn, tbl_left, tbl_right, tbl_top, tbl_bottom)
179
  _tbl_text = ''.join(tbls[tbl_index][0][1])
180
+ return tbl_pn, tbl_left, tbl_right, tbl_top, tbl_bottom, tbl_tag, _tbl_text
181
 
182
 
183
  class Docx(DocxParser):