StreamLight commited on
Commit
4042b44
·
verified ·
1 Parent(s): 2887e45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import numpy as np
6
  import faiss
7
  from sentence_transformers import SentenceTransformer
8
 
9
- API_TOKEN = os.getenv("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/"