Spaces:
Sleeping
Sleeping
Commit ·
d44094a
1
Parent(s): cf254bf
adding api key support in db.py
Browse files- utils/db.py +1 -1
utils/db.py
CHANGED
|
@@ -21,7 +21,7 @@ class Database(object):
|
|
| 21 |
db = None
|
| 22 |
repo = None
|
| 23 |
embedding_function = None
|
| 24 |
-
openai.api_key =
|
| 25 |
|
| 26 |
@classmethod
|
| 27 |
def __new__(cls, *args, **kwargs):
|
|
|
|
| 21 |
db = None
|
| 22 |
repo = None
|
| 23 |
embedding_function = None
|
| 24 |
+
openai.api_key = st.secrets.get("OPENAI_API_KEY")
|
| 25 |
|
| 26 |
@classmethod
|
| 27 |
def __new__(cls, *args, **kwargs):
|