Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -32,7 +32,7 @@ def get_labels(text, model, tokenizer, count_labels=8):
|
|
32 |
result_labels.append(pair[1])
|
33 |
|
34 |
@st.cache(allow_output_mutation=True)
|
35 |
-
def load_model(
|
36 |
-
model.load_state_dict(torch.load(
|
37 |
return model
|
38 |
|
|
|
32 |
result_labels.append(pair[1])
|
33 |
|
34 |
@st.cache(allow_output_mutation=True)
|
35 |
+
def load_model():
|
36 |
+
model.load_state_dict(torch.load('weight_model'))
|
37 |
return model
|
38 |
|