Spaces:
Configuration error
Configuration error
remove api keys
Browse files- lib/utils.py +1 -1
lib/utils.py
CHANGED
|
@@ -11,7 +11,7 @@ encoding_name = "p50k_base"
|
|
| 11 |
encoding = tiktoken.get_encoding(encoding_name)
|
| 12 |
|
| 13 |
embedding_model = "text-embedding-ada-002"
|
| 14 |
-
openai.api_key = "
|
| 15 |
|
| 16 |
# read from current directory
|
| 17 |
df = pd.read_pickle(Path(__file__).resolve().parent.__str__() + "/../data/lethain.pkl")
|
|
|
|
| 11 |
encoding = tiktoken.get_encoding(encoding_name)
|
| 12 |
|
| 13 |
embedding_model = "text-embedding-ada-002"
|
| 14 |
+
openai.api_key = os.environ.get("OPENAI_API_KEY", None)
|
| 15 |
|
| 16 |
# read from current directory
|
| 17 |
df = pd.read_pickle(Path(__file__).resolve().parent.__str__() + "/../data/lethain.pkl")
|