Spaces:
Build error
Build error
heikowagner
commited on
Commit
·
d29c627
1
Parent(s):
766d56a
Update app/load_model.py
Browse files- app/load_model.py +1 -1
app/load_model.py
CHANGED
@@ -89,7 +89,7 @@ def load_openai_model(temperature=0.9):
|
|
89 |
def load_openai_embedding():
|
90 |
return OpenAIEmbeddings()
|
91 |
|
92 |
-
|
93 |
def load_embedding(model_name):
|
94 |
embeddings = HuggingFaceInstructEmbeddings(
|
95 |
query_instruction="Represent the query for retrieval: ",
|
|
|
89 |
def load_openai_embedding():
|
90 |
return OpenAIEmbeddings()
|
91 |
|
92 |
+
#@st.cache_resource
|
93 |
def load_embedding(model_name):
|
94 |
embeddings = HuggingFaceInstructEmbeddings(
|
95 |
query_instruction="Represent the query for retrieval: ",
|