Spaces:
Sleeping
Sleeping
tamas.kiss
commited on
Commit
•
8dae07d
1
Parent(s):
36319c9
Update API key env var
Browse files
app.py
CHANGED
@@ -9,9 +9,10 @@ from tqdm import tqdm
|
|
9 |
from sentence_transformers.cross_encoder import CrossEncoder
|
10 |
import numpy as np
|
11 |
from torch import nn
|
|
|
12 |
|
13 |
# Set up semantic search
|
14 |
-
PINECONE_API_KEY =
|
15 |
|
16 |
def get_embedding(text):
|
17 |
embed_text = sentencetransformer_model.encode(text)
|
|
|
9 |
from sentence_transformers.cross_encoder import CrossEncoder
|
10 |
import numpy as np
|
11 |
from torch import nn
|
12 |
+
import os
|
13 |
|
14 |
# Set up semantic search
|
15 |
+
PINECONE_API_KEY = os.environ.get('PINECONE_API_KEY')
|
16 |
|
17 |
def get_embedding(text):
|
18 |
embed_text = sentencetransformer_model.encode(text)
|