Spaces:
Runtime error
Runtime error
kevinwang676
commited on
Commit
•
7dc13e5
1
Parent(s):
0e4f43a
Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ if __name__ == '__main__':
|
|
149 |
)
|
150 |
with gr.Row():
|
151 |
with gr.Column():
|
152 |
-
vc_input = gr.Audio(label="Input audio"+' (less than
|
153 |
vc_transpose = gr.Number(label="Transpose", value=0)
|
154 |
vc_f0method = gr.Radio(
|
155 |
label="Pitch extraction algorithm, PM is fast but Harvest is better for low frequencies",
|
@@ -173,4 +173,4 @@ if __name__ == '__main__':
|
|
173 |
vc_output2 = gr.Audio(label="Output Audio")
|
174 |
vc_submit.click(vc_fn, [vc_input, vc_transpose, vc_f0method, vc_index_ratio, tts_mode, tts_text, tts_voice], [vc_output1, vc_output2])
|
175 |
tts_mode.change(change_to_tts_mode, [tts_mode], [vc_input, tts_text, tts_voice])
|
176 |
-
app.queue(concurrency_count=1, max_size=20, api_open=config.api).launch(share=config.share)
|
|
|
149 |
)
|
150 |
with gr.Row():
|
151 |
with gr.Column():
|
152 |
+
vc_input = gr.Audio(label="Input audio"+' (less than 10 minutes)' if limitation else '')
|
153 |
vc_transpose = gr.Number(label="Transpose", value=0)
|
154 |
vc_f0method = gr.Radio(
|
155 |
label="Pitch extraction algorithm, PM is fast but Harvest is better for low frequencies",
|
|
|
173 |
vc_output2 = gr.Audio(label="Output Audio")
|
174 |
vc_submit.click(vc_fn, [vc_input, vc_transpose, vc_f0method, vc_index_ratio, tts_mode, tts_text, tts_voice], [vc_output1, vc_output2])
|
175 |
tts_mode.change(change_to_tts_mode, [tts_mode], [vc_input, tts_text, tts_voice])
|
176 |
+
app.queue(concurrency_count=1, max_size=20, api_open=config.api).launch(share=config.share, show_error=True)
|