WCarlW commited on
Commit
f2026b5
·
1 Parent(s): 79ac07f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -13,6 +13,8 @@ from branca.element import Figure
13
 
14
  from functions import decode_features, get_model
15
 
 
 
16
 
17
  def fancy_header(text, font_size=24):
18
  res = f'<span style="color:#ff5f27; font-size: {font_size}px;">{text}</span>'
@@ -27,11 +29,16 @@ st.write(36 * "-")
27
  fancy_header('\n📡 Connecting to Hopsworks Feature Store...')
28
 
29
  project = hopsworks.login()
30
- fs = project.get_feature_store()
31
- feature_view = fs.get_feature_view(
32
- name = 'miami_air_quality_fv',
33
- version = 1
34
- )
 
 
 
 
 
35
 
36
  st.write("Successfully connected!✔️")
37
  progress_bar.progress(20)
 
13
 
14
  from functions import decode_features, get_model
15
 
16
+ import hsfs
17
+
18
 
19
  def fancy_header(text, font_size=24):
20
  res = f'<span style="color:#ff5f27; font-size: {font_size}px;">{text}</span>'
 
29
  fancy_header('\n📡 Connecting to Hopsworks Feature Store...')
30
 
31
  project = hopsworks.login()
32
+ # fs = project.get_feature_store()
33
+ # feature_view = fs.get_feature_view(
34
+ # name = 'miami_air_quality_fv',
35
+ # version = 1
36
+ # )
37
+
38
+ connection = hsfs.connection()
39
+ fs = connection.get_feature_store(name='yhwang_featurestore')
40
+ td = fs.get_feature_view('miami_air_quality_fv', version=1)
41
+
42
 
43
  st.write("Successfully connected!✔️")
44
  progress_bar.progress(20)