Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import numpy as np
|
|
6 |
import faiss
|
7 |
from sentence_transformers import SentenceTransformer
|
8 |
|
9 |
-
API_TOKEN =
|
10 |
|
11 |
headers = {"Authorization": "Bearer {API_TOKEN}"}
|
12 |
API_URL = "https://api-inference.huggingface.co/models/"
|
|
|
6 |
import faiss
|
7 |
from sentence_transformers import SentenceTransformer
|
8 |
|
9 |
+
API_TOKEN = st.secrets["API_TOKEN"]
|
10 |
|
11 |
headers = {"Authorization": "Bearer {API_TOKEN}"}
|
12 |
API_URL = "https://api-inference.huggingface.co/models/"
|