Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -500,11 +500,7 @@ def change_choices():
|
|
| 500 |
|
| 501 |
|
| 502 |
def clean():
|
| 503 |
-
|
| 504 |
-
print("clean_empty_cache")
|
| 505 |
-
del net_g, n_spk, vc, hubert_model, tgt_sr # ,cpt
|
| 506 |
-
hubert_model = net_g = n_spk = vc = hubert_model = tgt_sr = None
|
| 507 |
-
return {"value": "", "__type__": "update"}
|
| 508 |
|
| 509 |
|
| 510 |
sr_dict = {
|
|
@@ -1540,6 +1536,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"),
|
|
| 1540 |
record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
|
| 1541 |
record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
|
| 1542 |
with gr.Row():
|
|
|
|
| 1543 |
with gr.Accordion('Google TTS', open=False, visible=True):
|
| 1544 |
with gr.Column():
|
| 1545 |
lang = gr.Radio(label='Chinese & Japanese do not work with ElevenLabs currently.',choices=['ar','en','it','es','fr','pt','zh-CN','de','hi','ja'], value='ar')
|
|
@@ -1549,7 +1546,6 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"),
|
|
| 1549 |
tfs = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
| 1550 |
tts_button = gr.Button(value="Speak")
|
| 1551 |
tts_button.click(fn=elevenTTS, inputs=[api_box,tfs, elevenid, lang], outputs=[record_button, input_audio0])
|
| 1552 |
-
clean_button = gr.Button(i18n("Clean"), variant="primary")
|
| 1553 |
with gr.Row():
|
| 1554 |
with gr.Accordion('Wav2Lip', open=False, visible=False):
|
| 1555 |
with gr.Row():
|
|
|
|
| 500 |
|
| 501 |
|
| 502 |
def clean():
|
| 503 |
+
return {"value": "", "__type__": "update"}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 504 |
|
| 505 |
|
| 506 |
sr_dict = {
|
|
|
|
| 1536 |
record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
|
| 1537 |
record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
|
| 1538 |
with gr.Row():
|
| 1539 |
+
clean_button = gr.Button("Clean", variant="secondary", size='sm')
|
| 1540 |
with gr.Accordion('Google TTS', open=False, visible=True):
|
| 1541 |
with gr.Column():
|
| 1542 |
lang = gr.Radio(label='Chinese & Japanese do not work with ElevenLabs currently.',choices=['ar','en','it','es','fr','pt','zh-CN','de','hi','ja'], value='ar')
|
|
|
|
| 1546 |
tfs = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
| 1547 |
tts_button = gr.Button(value="Speak")
|
| 1548 |
tts_button.click(fn=elevenTTS, inputs=[api_box,tfs, elevenid, lang], outputs=[record_button, input_audio0])
|
|
|
|
| 1549 |
with gr.Row():
|
| 1550 |
with gr.Accordion('Wav2Lip', open=False, visible=False):
|
| 1551 |
with gr.Row():
|