gefedya commited on
Commit
2b96aaf
1 Parent(s): ca81067

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ import torch
8
  @st.cache()
9
  def get_model():
10
  model = AutoModelForSequenceClassification.from_pretrained("siebert/sentiment-roberta-large-english", num_labels=2)
11
- model.load_state_dict(torch.load('cached_model.pth', map_location=torch.device('cpu')))
12
  return model
13
 
14
  @st.cache()
 
8
  @st.cache()
9
  def get_model():
10
  model = AutoModelForSequenceClassification.from_pretrained("siebert/sentiment-roberta-large-english", num_labels=2)
11
+ model.load_state_dict(torch.load('model_cached_2.pth', map_location=torch.device('cpu')))
12
  return model
13
 
14
  @st.cache()