Spaces:
Runtime error
Runtime error
deleted assignmetn model to weights
Browse files
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 |
-
|
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)
|