BALAKA commited on
Commit
131d766
1 Parent(s): bb6c8e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- return sentence
93
- #sentence = str(sentence).replace(' ', '').strip("[]grt")
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 = ''