MARI-posa commited on
Commit
34d088a
1 Parent(s): 6acbd69

Update stri.py

Browse files
Files changed (1) hide show
  1. stri.py +1 -1
stri.py CHANGED
@@ -46,7 +46,7 @@ query = st.text_input("Введите запрос")
46
 
47
  if st.button('Сгенерировать'):
48
  with open("book_embeddingsN.pkl", "rb") as f:
49
- book_embeddings = pickle.load(f, map_location=torch.device('cpu'))#
50
  #book_embeddings = pickle.load(f)
51
 
52
  query_tokens = tokenizer.encode_plus(
 
46
 
47
  if st.button('Сгенерировать'):
48
  with open("book_embeddingsN.pkl", "rb") as f:
49
+ book_embeddings = torch.load(f, map_location=torch.device('cpu'))#
50
  #book_embeddings = pickle.load(f)
51
 
52
  query_tokens = tokenizer.encode_plus(