awinml commited on
Commit
2563fc9
1 Parent(s): 93b6d4c
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import numpy as np
2
  import streamlit_scrollable_textbox as stx
3
-
4
  import pinecone
5
  import streamlit as st
6
 
@@ -89,11 +89,11 @@ sparse_scores = np.argsort(bm25.get_scores(tokenized_query), axis=0)[::-1]
89
  indices = get_bm25_search_hits(corpus, sparse_scores, 50)
90
 
91
 
92
- dense_embedding = instructor_model.predict(
93
  query_embedding_instruction,
94
  query_text,
95
  api_name="/predict",
96
- )
97
 
98
 
99
  text_embedding_instructions_choice = [
 
1
  import numpy as np
2
  import streamlit_scrollable_textbox as stx
3
+ from ast import literal_eval
4
  import pinecone
5
  import streamlit as st
6
 
 
89
  indices = get_bm25_search_hits(corpus, sparse_scores, 50)
90
 
91
 
92
+ dense_embedding = literal_eval(instructor_model.predict(
93
  query_embedding_instruction,
94
  query_text,
95
  api_name="/predict",
96
+ ))
97
 
98
 
99
  text_embedding_instructions_choice = [