Dzhamb commited on
Commit
20da4f7
1 Parent(s): aac64a9

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
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(model, filename):
36
- model.load_state_dict(torch.load(filename))
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