You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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(
The text was updated successfully, but these errors were encountered:
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
toTrue
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 toTrue
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(
The text was updated successfully, but these errors were encountered: