quivr/backend/parsers
Michael Tan 0888bc5da2
(fix) temporary audio file not removed. (#377)
* (fix) temporary audio file not removed.

In audio.py file:
texts = text_splitter.split_text(transcript)

Threw an exception.
TypeError: expected string or bytes-like object, got 'OpenAIObject'

This causes the temporary file to persist.

Signed-off-by: Michael Tan <tan.michael@mac.com>

* Additionally fix the reason why text splitting threw the exception.

Default response format is JSON.

Signed-off-by: Michael Tan <tan.michael@mac.com>

---------

Signed-off-by: Michael Tan <tan.michael@mac.com>
2023-06-28 09:47:59 +02:00
..
audio.py (fix) temporary audio file not removed. (#377) 2023-06-28 09:47:59 +02:00
common.py Feat: chat name edit (#343) 2023-06-20 09:54:23 +02:00
csv.py Feat: chat name edit (#343) 2023-06-20 09:54:23 +02:00
docx.py feat(settings): refactored 2023-06-19 22:46:25 +02:00
epub.py feat(settings): refactored 2023-06-19 22:46:25 +02:00
github.py feat(settings): refactored 2023-06-19 22:46:25 +02:00
html.py feat(settings): refactored 2023-06-19 22:46:25 +02:00
markdown.py feat(settings): refactored 2023-06-19 22:46:25 +02:00
notebook.py feat(settings): refactored 2023-06-19 22:46:25 +02:00
odt.py feat(settings): refactored 2023-06-19 22:46:25 +02:00
pdf.py feat(settings): refactored 2023-06-19 22:46:25 +02:00
powerpoint.py feat(settings): refactored 2023-06-19 22:46:25 +02:00
txt.py feat(settings): refactored 2023-06-19 22:46:25 +02:00