Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
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)
|