Jan Mühlnikel commited on
Commit
fd577be
1 Parent(s): cceb9c7

upgraded hf

Browse files
__pycache__/similarity_page.cpython-310.pyc CHANGED
Binary files a/__pycache__/similarity_page.cpython-310.pyc and b/__pycache__/similarity_page.cpython-310.pyc differ
 
similarity_page.py CHANGED
@@ -104,8 +104,6 @@ def load_model():
104
  model = SentenceTransformer('all-MiniLM-L6-v2')
105
  return model
106
 
107
-
108
- """
109
  # Load Embeddings
110
  @st.cache_data
111
  def load_embeddings_and_index():
@@ -115,7 +113,6 @@ def load_embeddings_and_index():
115
  embeddings = stored_data["embeddings"]
116
 
117
  return embeddings
118
- """
119
 
120
 
121
  # USE CACHE FUNCTIONS
@@ -131,8 +128,8 @@ COUNTRY_OPTION_LIST = getCountry()
131
 
132
  # LOAD MODEL FROM CACHE FO SEMANTIC SEARCH
133
  model = load_model()
134
- #embeddings = load_embeddings_and_index()
135
- embeddings = []
136
 
137
  def show_page():
138
  st.write(f"Current RAM usage of this app: {get_process_memory():.2f} MB")
 
104
  model = SentenceTransformer('all-MiniLM-L6-v2')
105
  return model
106
 
 
 
107
  # Load Embeddings
108
  @st.cache_data
109
  def load_embeddings_and_index():
 
113
  embeddings = stored_data["embeddings"]
114
 
115
  return embeddings
 
116
 
117
 
118
  # USE CACHE FUNCTIONS
 
128
 
129
  # LOAD MODEL FROM CACHE FO SEMANTIC SEARCH
130
  model = load_model()
131
+ embeddings = load_embeddings_and_index()
132
+ #embeddings = []
133
 
134
  def show_page():
135
  st.write(f"Current RAM usage of this app: {get_process_memory():.2f} MB")