Spaces:
Sleeping
Sleeping
Commit
·
b043715
1
Parent(s):
cf24a30
secret_key_added
Browse files- scrape_create_context.py +4 -0
scrape_create_context.py
CHANGED
|
@@ -221,6 +221,10 @@ load_dotenv()
|
|
| 221 |
|
| 222 |
SECRET_IN_ENV = False
|
| 223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
def load_api_key():
|
| 225 |
with open("secret.txt", "r") as f:
|
| 226 |
return f.read()
|
|
|
|
| 221 |
|
| 222 |
SECRET_IN_ENV = False
|
| 223 |
|
| 224 |
+
import os
|
| 225 |
+
SECRET_TOKEN = os.getenv("SECRET_TOKEN")
|
| 226 |
+
|
| 227 |
+
|
| 228 |
def load_api_key():
|
| 229 |
with open("secret.txt", "r") as f:
|
| 230 |
return f.read()
|