alpertml commited on
Commit
250e4dc
·
verified ·
1 Parent(s): 699b778

Upload 3 files

Browse files
Files changed (3) hide show
  1. .env +2 -0
  2. config.py +6 -2
  3. requirements.txt +1 -0
.env ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ MJ_APIKEY_PUBLIC = '2846230e59f26adb7ec9ff2790be29dc'
2
+ MJ_APIKEY_PRIVATE = 'fcbcb59ae402ef96b7b7d9bcb211fd44'
config.py CHANGED
@@ -1,12 +1,16 @@
 
 
 
1
  from sklearn.metrics import r2_score
 
2
 
3
  class Config():
4
 
5
  def __init__(self):
6
  pass
7
 
8
- MJ_APIKEY_PUBLIC = '2846230e59f26adb7ec9ff2790be29dc'
9
- MJ_APIKEY_PRIVATE = 'fcbcb59ae402ef96b7b7d9bcb211fd44'
10
 
11
  target = 'demand'
12
  split_local_test = False
 
1
+ from dotenv import load_dotenv
2
+ import os
3
+
4
  from sklearn.metrics import r2_score
5
+ load_dotenv('.env')
6
 
7
  class Config():
8
 
9
  def __init__(self):
10
  pass
11
 
12
+ MJ_APIKEY_PUBLIC = os.getenv('MJ_APIKEY_PUBLIC')
13
+ MJ_APIKEY_PRIVATE = os.getenv('MJ_APIKEY_PRIVATE')
14
 
15
  target = 'demand'
16
  split_local_test = False
requirements.txt CHANGED
@@ -4,3 +4,4 @@ numpy==1.24.3
4
  pandas==2.0.0
5
  scikit_learn==1.2.2
6
  streamlit==1.23.1
 
 
4
  pandas==2.0.0
5
  scikit_learn==1.2.2
6
  streamlit==1.23.1
7
+ xlsxwriter