Leon-Sander / local_multimodal_ai_chat

GNU General Public License v3.0
101 stars 66 forks source link

Error when uploading a PDF File #16

Closed productosfarmaceuticos closed 3 months ago

productosfarmaceuticos commented 3 months ago

Hi, Thanks for the awesome video. I run the code and get the following error when importing a PDF File: TypeError: INSTRUCTOR._load_sbert_model() got an unexpected keyword argument 'token'

Traceback: File "...\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in _run_script exec(code, module.dict) File "...\app.py", line 149, in main() File "...\app.py", line 91, in main add_documents_to_db(uploaded_pdf) File "...\pdf_handler.py", line 31, in add_documents_to_db vector_db = load_vectordb(create_embeddings()) File "...\llm_chains.py", line 25, in create_embeddings return HuggingFaceInstructEmbeddings(model_name=embeddings_path) File "...\lib\site-packages\langchain_community\embeddings\huggingface.py", line 153, in init self.client = INSTRUCTOR( File "..\lib\site-packages\sentence_transformers\SentenceTransformer.py", line 194, in init modules = self._load_sbert_model(

When importing an image, it works very well. good. Please, help, support with this error.

Leon-Sander commented 3 months ago

Replica of the last issue #15 and #8 Please look there and let me know if it works.

productosfarmaceuticos commented 3 months ago

Replica of the last issue #15 and #8 Please look there and let me know if it works.

It worked!!!. Thanks for your support!