ladapetrushenko commited on
Commit
4590734
·
1 Parent(s): b63cc3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,7 +48,7 @@ if form_button:
48
  st.stop()
49
  if not current_model:
50
  st.error("You didn't choose the model for the collocate selection")
51
- st.stop()
52
 
53
  if current_model == 'MODEL 1: nplus':
54
  model = load_w2v('models/nplus1_word2vec.bin')
@@ -63,6 +63,6 @@ if form_button:
63
  word=target_word,
64
  target_pos=target_word_pos,
65
  topn=collocate_number,
66
- restrict_vocab=int(restrict_vocab.strip().split())
67
  )
68
  st.write(output)
 
48
  st.stop()
49
  if not current_model:
50
  st.error("You didn't choose the model for the collocate selection")
51
+ st.stop()
52
 
53
  if current_model == 'MODEL 1: nplus':
54
  model = load_w2v('models/nplus1_word2vec.bin')
 
63
  word=target_word,
64
  target_pos=target_word_pos,
65
  topn=collocate_number,
66
+ restrict_vocab=int(restrict_vocab.strip())
67
  )
68
  st.write(output)