Spaces:
Runtime error
Runtime error
gamingflexer
commited on
Commit
•
19c4491
1
Parent(s):
e69af58
env to os env shifted
Browse files- src/config.py +17 -8
src/config.py
CHANGED
@@ -1,15 +1,24 @@
|
|
1 |
from decouple import config
|
2 |
import os
|
3 |
|
4 |
-
|
5 |
-
SERP_API_KEY = config('SERP_API_KEY', default="")
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
dense_models = {
|
15 |
'text-embedding-ada-002': {
|
|
|
1 |
from decouple import config
|
2 |
import os
|
3 |
|
4 |
+
deploy = True
|
|
|
5 |
|
6 |
+
if deploy:
|
7 |
+
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
|
8 |
+
SERP_API_KEY = os.environ.get("SERP_API_KEY")
|
9 |
+
SUPABASE_URL = os.environ.get("SUPABASE_URL")
|
10 |
+
SUPABASE_KEY = os.environ.get("SUPABASE_KEY")
|
11 |
+
COPY_LEAKS_EMAIL_ADDRESS = os.environ.get("COPY_LEAKS_EMAIL_ADDRESS")
|
12 |
+
COPY_LEAKS_EMAIL_KEY = os.environ.get("COPY_LEAKS_EMAIL_KEY")
|
13 |
+
WEBHOOK_SECRET = "*asd9s"
|
14 |
+
else:
|
15 |
+
OPENAI_API_KEY = config('OPENAI_API_KEY', default="")
|
16 |
+
SERP_API_KEY = config('SERP_API_KEY', default="")
|
17 |
+
SUPABASE_URL = config('SUPABASE_URL', default="")
|
18 |
+
SUPABASE_KEY = config('SUPABASE_KEY', default="")
|
19 |
+
COPY_LEAKS_EMAIL_ADDRESS = config('COPY_LEAKS_EMAIL_ADDRESS', default="")
|
20 |
+
COPY_LEAKS_EMAIL_KEY = config('COPY_LEAKS_EMAIL_KEY', default="")
|
21 |
+
WEBHOOK_SECRET = config('WEBHOOK_SECRET', default="*asd9s")
|
22 |
|
23 |
dense_models = {
|
24 |
'text-embedding-ada-002': {
|