Arunachalam S commited on
Commit
bf42639
1 Parent(s): e53efde
Files changed (2) hide show
  1. app.py +4 -3
  2. requirements.txt +2 -1
app.py CHANGED
@@ -7,15 +7,16 @@ import os
7
  import base64
8
 
9
 
10
- # Retrieve the base64-encoded credentials from environment variables
11
  encoded_credentials = os.getenv('BIGQUERY_KEY')
12
 
13
- # Decode the base64-encoded credentials
14
  decoded_credentials = base64.b64decode(encoded_credentials).decode('utf-8')
15
 
16
  # Set Google Application Credentials
 
17
  os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = decoded_credentials
18
- keypath = r'C:\Users\aruni\Project\Loan_Approval\youtube-analytics-keys.json'
19
  dataset = 'home_loan'
20
  table = 'home_loan_approval'
21
  client = bigquery.Client()
 
7
  import base64
8
 
9
 
10
+ Retrieve the base64-encoded credentials from environment variables
11
  encoded_credentials = os.getenv('BIGQUERY_KEY')
12
 
13
+ #Decode the base64-encoded credentials
14
  decoded_credentials = base64.b64decode(encoded_credentials).decode('utf-8')
15
 
16
  # Set Google Application Credentials
17
+
18
  os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = decoded_credentials
19
+
20
  dataset = 'home_loan'
21
  table = 'home_loan_approval'
22
  client = bigquery.Client()
requirements.txt CHANGED
@@ -3,4 +3,5 @@ pandas==2.0.3
3
  scikit-learn==1.2.2
4
  joblib==1.3.2
5
  xgboost==2.0.3
6
- google-cloud-bigquery==3.25.0
 
 
3
  scikit-learn==1.2.2
4
  joblib==1.3.2
5
  xgboost==2.0.3
6
+ google-cloud-bigquery==3.25.0
7
+ python==3.9.7