Spaces:
Sleeping
Sleeping
Commit
·
9716ed4
1
Parent(s):
d31e714
updated the model labels and api code
Browse files
classifier/Albert_latest.py
CHANGED
@@ -33,7 +33,7 @@ class Model:
|
|
33 |
return predictions[0].tolist()[:2],Labels[np.argmax(predictions)]
|
34 |
|
35 |
model_instance = None
|
36 |
-
model_weights = "
|
37 |
|
38 |
def get_model():
|
39 |
global model_instance
|
|
|
33 |
return predictions[0].tolist()[:2],Labels[np.argmax(predictions)]
|
34 |
|
35 |
model_instance = None
|
36 |
+
model_weights = "assets/albert_sentiment_checkpoint_58.pt"
|
37 |
|
38 |
def get_model():
|
39 |
global model_instance
|