Skip to content

Commit

Permalink
[#16] Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
uogbuji committed Jul 19, 2023
1 parent 6e25b99 commit c1452c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion demo/chat_pdf_streamlit_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
from ogbujipt.config import openai_emulation, openai_live, HOST_DEFAULT
from ogbujipt.prompting import format, CHATGPT_DELIMITERS
from ogbujipt import oapi_choice1_text
from ogbujipt.async_helper import schedule_openai_call, openai_api_surrogate
from ogbujipt.text_helper import text_splitter
from ogbujipt.embedding_helper import qdrant_collection

Expand Down
3 changes: 2 additions & 1 deletion pylib/embedding_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def update(self, texts, metas=None):
metas = [{}]*(len(texts))
else:
if len(texts) > len(metas):
warnings.warn(f'More texts ({len(texts)} provided than metadata {len(metas)}). Extra metadata items will be ignored.')
warnings.warn(f'More texts ({len(texts)} provided than metadata {len(metas)}).'
'Extra metadata items will be ignored.')
metas = itertools.chain(metas, [{}]*(len(texts)-len(metas)))
elif len(metas) > len(texts):
warnings.warn(f'Fewer texts ({len(texts)} provided than metadata {len(metas)}). '
Expand Down

0 comments on commit c1452c9

Please sign in to comment.