Yasaman commited on
Commit
ee8e147
1 Parent(s): 41ffca6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -12,22 +12,18 @@ from functions import *
12
 
13
 
14
  project = hopsworks.login()
15
- fs = project.get_feature_store()
16
-
17
- feature_view = fs.get_feature_view(
18
- name = 'air_quality_aqi_fv',
19
- version = 1
20
- )
21
 
22
 
23
-
24
-
25
  start_date = datetime.now() - timedelta(days=1)
26
  start_time = int(start_date.timestamp()) * 1000
27
- X = feature_view.get_batch_data(start_time=start_time)
28
 
29
  X = X.drop(columns=["date"]).fillna(0)
30
 
 
 
 
 
31
  mr = project.get_model_registry()
32
  model = mr.get_model("gradient_boost_paris_model", version=1)
33
  model_dir = model.download()
 
12
 
13
 
14
  project = hopsworks.login()
 
 
 
 
 
 
15
 
16
 
 
 
17
  start_date = datetime.now() - timedelta(days=1)
18
  start_time = int(start_date.timestamp()) * 1000
19
+ X = pd.read_csv('x.csv')
20
 
21
  X = X.drop(columns=["date"]).fillna(0)
22
 
23
+ X=X.drop(df.columns[0],axis=1)
24
+
25
+ print(gb.predict(df)[:7])
26
+
27
  mr = project.get_model_registry()
28
  model = mr.get_model("gradient_boost_paris_model", version=1)
29
  model_dir = model.download()