qisan commited on
Commit
3a93e63
1 Parent(s): 6781451

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,13 +7,13 @@ import hopsworks
7
  import joblib
8
 
9
  project = hopsworks.login(project='liangc40')
10
- fs = project.get_feature_store()
11
 
12
 
13
  mr = project.get_model_registry()
14
  model = mr.get_model("sentimental_analysis_model", version=1)
15
- model_dir = model.download()
16
- model = joblib.load(model_dir + "/sentimental_analysis_model.pkl")
17
 
18
  def analyse(text):
19
  label = model.predict(text)
 
7
  import joblib
8
 
9
  project = hopsworks.login(project='liangc40')
10
+ #fs = project.get_feature_store()
11
 
12
 
13
  mr = project.get_model_registry()
14
  model = mr.get_model("sentimental_analysis_model", version=1)
15
+ #model_dir = model.download()
16
+ #model = joblib.load(model_dir + "/sentimental_analysis_model.pkl")
17
 
18
  def analyse(text):
19
  label = model.predict(text)