qisan commited on
Commit
11ec2ba
1 Parent(s): dbf5ce1

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,8 @@ project = hopsworks.login(project='liangc40')
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(text)
 
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(text)