BALAKA commited on
Commit
3dc8a0c
·
1 Parent(s): 07ce112

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -86,6 +86,7 @@ def split_file(file_path):
86
 
87
 
88
  def process(file_path):
 
89
  if librosa.get_duration(filename=file_path) <= 5:
90
  sentence = tran_script(file_path)
91
  sentence = str(sentence).replace(' ', '').strip("[]grt")
@@ -159,4 +160,4 @@ with demo:
159
  text_button4.click(process, inputs=file_input,
160
  outputs=file_output)
161
 
162
- demo.launch(enable_queue=True)
 
86
 
87
 
88
  def process(file_path):
89
+ return file_path
90
  if librosa.get_duration(filename=file_path) <= 5:
91
  sentence = tran_script(file_path)
92
  sentence = str(sentence).replace(' ', '').strip("[]grt")
 
160
  text_button4.click(process, inputs=file_input,
161
  outputs=file_output)
162
 
163
+ demo.launch(share=True, enable_queue=True)