Skip to content

chatmultipledocuments/chatpdf1.py - Got Value Error ValueError: The de-serialization relies loading a pickle file. Pickle files can be modified to deliver a malicious payload that results in execution of arbitrary code on your machine.You will need to set allow_dangerous_deserialization to True to enable deserialization. If you do this, make sure that you trust the source of the data. For example, if you are loading a file that you created, and no that no one else has modified the file, then this is safe to do. Do not set this to True if you are loading a file from an untrusted source (e.g., some random site on the internet.). #14

@MannePradeepKumar

Description

@MannePradeepKumar

Screenshot 2024-04-15 130713

ValueError: The de-serialization relies loading a pickle file. Pickle files can be modified to deliver a malicious payload that results in execution of arbitrary code on your machine.You will need to set allow_dangerous_deserialization to True to enable deserialization. If you do this, make sure that you trust the source of the data. For example, if you are loading a file that you created, and no that no one else has modified the file, then this is safe to do. Do not set this to True if you are loading a file from an untrusted source (e.g., some random site on the internet.).
Traceback:
File "C:\Users\pmanne\Downloads\Gemini\gemini\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "C:\Users\pmanne\Downloads\Gemini\geminipdfchatbot.py", line 107, in
main()
File "C:\Users\pmanne\Downloads\Gemini\geminipdfchatbot.py", line 92, in main
user_input(user_question)
File "C:\Users\pmanne\Downloads\Gemini\geminipdfchatbot.py", line 69, in user_input
new_db = FAISS.load_local("faiss_index", embeddings)
File "C:\Users\pmanne\Downloads\Gemini\gemini\lib\site-packages\langchain_community\vectorstores\faiss.py", line 1078, in load_local
raise ValueError(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions