Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -89,9 +89,8 @@ def split_file(file_path):
|
|
89 |
def process(file_path):
|
90 |
if librosa.get_duration(filename=file_path) <= 5:
|
91 |
sentence = tran_script(file_path)
|
92 |
-
|
93 |
-
|
94 |
-
#return '[0.00-0.05] found : ' + check(sentence)
|
95 |
counter = split_file(file_path)
|
96 |
sentence = tran_script(counter)
|
97 |
result = ''
|
|
|
89 |
def process(file_path):
|
90 |
if librosa.get_duration(filename=file_path) <= 5:
|
91 |
sentence = tran_script(file_path)
|
92 |
+
sentence = str(sentence).replace(' ', '').strip("[]")
|
93 |
+
return 'found at 0.00m 0.00m 0.00-0.05 seconds found ' + str(check(sentence))
|
|
|
94 |
counter = split_file(file_path)
|
95 |
sentence = tran_script(counter)
|
96 |
result = ''
|