Spaces:
Runtime error
Runtime error
update api key
Browse files
app.py
CHANGED
@@ -11,8 +11,7 @@ from langchain.embeddings.openai import OpenAIEmbeddings
|
|
11 |
from langchain.vectorstores.faiss import FAISS
|
12 |
import pickle
|
13 |
|
14 |
-
os.environ["HUGGINGFACEHUB_API_TOKEN"]
|
15 |
-
|
16 |
model_name = "sentence-transformers/all-mpnet-base-v2"
|
17 |
hf = HuggingFaceEmbeddings(model_name=model_name)
|
18 |
|
|
|
11 |
from langchain.vectorstores.faiss import FAISS
|
12 |
import pickle
|
13 |
|
14 |
+
HUGGINGFACEHUB_API_TOKEN = os.environ["HUGGINGFACEHUB_API_TOKEN"]
|
|
|
15 |
model_name = "sentence-transformers/all-mpnet-base-v2"
|
16 |
hf = HuggingFaceEmbeddings(model_name=model_name)
|
17 |
|