RobPruzan commited on
Commit
1d78b57
1 Parent(s): e138225

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,8 +49,8 @@ model.to('cpu')
49
  p = pipeline("automatic-speech-recognition")
50
 
51
  w2v = dict({})
52
- for idx, key in enumerate(glove_vectors.vocab):
53
- w2v[key] = glove_vectors.get_vector(key)
54
 
55
  def calculate_diversity(text):
56
 
 
49
  p = pipeline("automatic-speech-recognition")
50
 
51
  w2v = dict({})
52
+ for idx, key in enumerate(glove_vectors.key_to_index.keys()):
53
+ w2v[key] = glove_vectors.wv.get_vector(key)
54
 
55
  def calculate_diversity(text):
56