Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow_dangerous_deserialization to True error on submit Ask a Question from the PDF Files #2

Open
gugabsb opened this issue May 31, 2024 · 0 comments

Comments

@gugabsb
Copy link

gugabsb commented May 31, 2024

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 know 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:\Python312\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "C:\Users\gsmdf\nodejs\gemini\readpdf\Gemini-PDF-Question-Answering-System\app.py", line 175, in
main()
File "C:\Users\gsmdf\nodejs\gemini\readpdf\Gemini-PDF-Question-Answering-System\app.py", line 137, in main
user_input(user_question, processed_pdf_text)
File "C:\Users\gsmdf\nodejs\gemini\readpdf\Gemini-PDF-Question-Answering-System\app.py", line 110, in user_input
new_db = FAISS.load_local("faisss_index", embeddings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\langchain_community\vectorstores\faiss.py", line 1078, in load_local
raise ValueError(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant