santhoshs commited on
Commit
e1101db
·
1 Parent(s): 65ff7bb

enable deserialization

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ if not os.path.exists(imdb_csv_file):
42
  vector_store = FAISS.from_documents(chunked_documents, cached_embedder)
43
  vector_store.save_local(vector_file)
44
  else:
45
- vector_store = FAISS.load_local(vector_file, cached_embedder)
46
 
47
  prompt_template = ChatPromptTemplate.from_template(
48
  "You are a movie recommendation system, for a given {query} find recommendations from {content}."
 
42
  vector_store = FAISS.from_documents(chunked_documents, cached_embedder)
43
  vector_store.save_local(vector_file)
44
  else:
45
+ vector_store = FAISS.load_local(vector_file, cached_embedder, allow_dangerous_deserialization=True)
46
 
47
  prompt_template = ChatPromptTemplate.from_template(
48
  "You are a movie recommendation system, for a given {query} find recommendations from {content}."