Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|