Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 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 |
|