Vasi001 commited on
Commit
9d0f202
·
1 Parent(s): 03c56ef

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +4 -4
functions.py CHANGED
@@ -4,9 +4,9 @@ import os
4
  import joblib
5
  import pandas as pd
6
 
7
- from dotenv import load_dotenv
8
- load_dotenv()
9
 
 
 
10
 
11
  def decode_features(df, feature_view):
12
  """Decodes features in the input DataFrame using corresponding Hopsworks Feature Store transformation functions"""
@@ -67,7 +67,7 @@ def get_air_json(city_name, AIR_QUALITY_API_KEY):
67
 
68
 
69
  def get_air_quality_data(city_name):
70
- AIR_QUALITY_API_KEY = os.getenv('AIR_QUALITY_API_KEY')
71
  json = get_air_json(city_name, AIR_QUALITY_API_KEY)
72
 
73
  iaqi = json['iaqi']
@@ -112,7 +112,7 @@ def get_weather_json(city, date, WEATHER_API_KEY):
112
 
113
 
114
  def get_weather_data(city_name, date):
115
- WEATHER_API_KEY = os.getenv('WEATHER_API_KEY')
116
  json = get_weather_json(city_name, date, WEATHER_API_KEY)
117
  data = json['days'][0]
118
 
 
4
  import joblib
5
  import pandas as pd
6
 
 
 
7
 
8
+ AIR_QUALITY_API_KEY="722121a6290f3209a19231fcbd93baf2209fbe52"
9
+ WEATHER_API_KEY="UNCQW6ZMAX2NNBT5LJSPRAAL5"
10
 
11
  def decode_features(df, feature_view):
12
  """Decodes features in the input DataFrame using corresponding Hopsworks Feature Store transformation functions"""
 
67
 
68
 
69
  def get_air_quality_data(city_name):
70
+ #AIR_QUALITY_API_KEY = os.getenv('AIR_QUALITY_API_KEY')
71
  json = get_air_json(city_name, AIR_QUALITY_API_KEY)
72
 
73
  iaqi = json['iaqi']
 
112
 
113
 
114
  def get_weather_data(city_name, date):
115
+ #WEATHER_API_KEY = os.getenv('WEATHER_API_KEY')
116
  json = get_weather_json(city_name, date, WEATHER_API_KEY)
117
  data = json['days'][0]
118