Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -124,8 +124,8 @@ def infer(audio_input_path):
|
|
124 |
# Check if the command was successful
|
125 |
if result.returncode == 0:
|
126 |
print("Command executed successfully.")
|
127 |
-
|
128 |
-
return
|
129 |
else:
|
130 |
print("Error executing command.")
|
131 |
raise gr.Error("Error executing command")
|
@@ -247,7 +247,7 @@ def hide_previous():
|
|
247 |
css="""
|
248 |
div#col-container{
|
249 |
margin: 0 auto;
|
250 |
-
max-width:
|
251 |
}
|
252 |
"""
|
253 |
|
|
|
124 |
# Check if the command was successful
|
125 |
if result.returncode == 0:
|
126 |
print("Command executed successfully.")
|
127 |
+
first_out, file_list = concatenate_audio()
|
128 |
+
return first_out, gr.update(choices=file_list, value=file_list[0], visible=True), gr.update(visible=True), gr.update(value=file_list, visible=True), gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
129 |
else:
|
130 |
print("Error executing command.")
|
131 |
raise gr.Error("Error executing command")
|
|
|
247 |
css="""
|
248 |
div#col-container{
|
249 |
margin: 0 auto;
|
250 |
+
max-width: 1200px;
|
251 |
}
|
252 |
"""
|
253 |
|