Spaces:
Sleeping
Sleeping
added paths to model
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ if st.button('Generate tags!'):
|
|
14 |
st.write('# Please, enter title!')
|
15 |
else:
|
16 |
text = title + '[SEP]' + abstract
|
17 |
-
model, tokenizer = load_setup(path_to_model
|
18 |
prediction = predict(model, tokenizer, text)
|
19 |
st.markdown(f'## Predicted tag(s): {prediction}')
|
20 |
else:
|
|
|
14 |
st.write('# Please, enter title!')
|
15 |
else:
|
16 |
text = title + '[SEP]' + abstract
|
17 |
+
model, tokenizer = load_setup(path_to_model='distilbert1.bin', path_to_vocab='vocab_distilbert1.bin')
|
18 |
prediction = predict(model, tokenizer, text)
|
19 |
st.markdown(f'## Predicted tag(s): {prediction}')
|
20 |
else:
|