BALAKA commited on
Commit
9e64c84
·
1 Parent(s): 7c077ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -90,8 +90,9 @@ def split_file(file_path):
90
  def process(file_path):
91
  if librosa.get_duration(filename=file_path) <= 5:
92
  sentence = tran_script(file_path)
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 = ''
 
90
  def process(file_path):
91
  if librosa.get_duration(filename=file_path) <= 5:
92
  sentence = tran_script(file_path)
93
+ return sentence
94
+ #sentence = str(sentence).replace(' ', '').strip("[]grt")
95
+ #return '[0.00-0.05] found : ' + check(sentence)
96
  counter = split_file(file_path)
97
  sentence = tran_script(counter)
98
  result = ''