Spaces:
Runtime error
Runtime error
change to return list
Browse files- predict.py +2 -1
predict.py
CHANGED
|
@@ -21,7 +21,8 @@ def convert_probs(probs):
|
|
| 21 |
if ids[i-1] != ids[i]:
|
| 22 |
new = vocab[ids[i]]
|
| 23 |
if new: s.append(new)
|
| 24 |
-
return '.'.join(s)
|
|
|
|
| 25 |
|
| 26 |
def predict(path):
|
| 27 |
audio = loader(path)
|
|
|
|
| 21 |
if ids[i-1] != ids[i]:
|
| 22 |
new = vocab[ids[i]]
|
| 23 |
if new: s.append(new)
|
| 24 |
+
#return '.'.join(s)
|
| 25 |
+
return s
|
| 26 |
|
| 27 |
def predict(path):
|
| 28 |
audio = loader(path)
|