Przeglądaj źródła

Fix csv reader exception. (#4628)

### What problem does this PR solve?

#4552
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.16.0
Kevin Hu 9 miesięcy temu
rodzic
commit
9d717f0b6e
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      rag/app/qa.py

+ 1
- 1
rag/app/qa.py Wyświetl plik

f"{len(fails)} failure, line: %s..." % (",".join(fails[:3])) if fails else ""))) f"{len(fails)} failure, line: %s..." % (",".join(fails[:3])) if fails else "")))


if question: if question:
res.append(beAdoc(deepcopy(doc), question, answer, eng, len(reader)))
res.append(beAdoc(deepcopy(doc), question, answer, eng, len(list(reader))))


callback(0.6, ("Extract Q&A: {}".format(len(res)) + ( callback(0.6, ("Extract Q&A: {}".format(len(res)) + (
f"{len(fails)} failure, line: %s..." % (",".join(fails[:3])) if fails else ""))) f"{len(fails)} failure, line: %s..." % (",".join(fails[:3])) if fails else "")))

Ładowanie…
Anuluj
Zapisz