WCarlW commited on
Commit
4ca656d
·
1 Parent(s): f2026b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -11
app.py CHANGED
@@ -13,8 +13,6 @@ from branca.element import Figure
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,15 +27,11 @@ st.write(36 * "-")
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!✔️")
 
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
  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
 
37
  st.write("Successfully connected!✔️")