EgorDan commited on
Commit
5963bd7
1 Parent(s): 234ebfe

deleted assignmetn model to weights

Browse files
Files changed (1) hide show
  1. pages/annotation_generator.py +1 -1
pages/annotation_generator.py CHANGED
@@ -7,7 +7,7 @@ device = 'cpu'
7
 
8
  tokenizer = load('./pages/tokenizer.joblib')
9
  model = load('./pages/model.joblib')
10
- weights = model.load_state_dict(torch.load('./pages/model_weights.pt', map_location=device))
11
 
12
  temperature = st.slider('Градус дичи:', min_value = 1., max_value = 20., value = 3.)
13
  num_beams = st.slider('Число веток для поиска:', min_value = 1, max_value = 15, value = 7)
 
7
 
8
  tokenizer = load('./pages/tokenizer.joblib')
9
  model = load('./pages/model.joblib')
10
+ model.load_state_dict(torch.load('./pages/model_weights.pt', map_location=device))
11
 
12
  temperature = st.slider('Градус дичи:', min_value = 1., max_value = 20., value = 3.)
13
  num_beams = st.slider('Число веток для поиска:', min_value = 1, max_value = 15, value = 7)