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