Spaces:
Runtime error
Runtime error
Update webui.py
Browse files
webui.py
CHANGED
|
@@ -44,23 +44,24 @@ def update_prompt_audio():
|
|
| 44 |
with gr.Blocks() as demo:
|
| 45 |
mutex = threading.Lock()
|
| 46 |
gr.HTML('''
|
| 47 |
-
|
| 48 |
|
| 49 |
<p align="center">
|
| 50 |
<a href='https://arxiv.org/abs/2502.05512'><img src='https://img.shields.io/badge/ArXiv-2502.05512-red'></a>
|
|
|
|
| 51 |
''')
|
| 52 |
-
with gr.Tab("
|
| 53 |
with gr.Row():
|
| 54 |
os.makedirs("prompts",exist_ok=True)
|
| 55 |
-
prompt_audio = gr.Audio(label="
|
| 56 |
sources=["upload","microphone"],type="filepath")
|
| 57 |
prompt_list = os.listdir("prompts")
|
| 58 |
default = ''
|
| 59 |
if prompt_list:
|
| 60 |
default = prompt_list[0]
|
| 61 |
-
input_text_single = gr.Textbox(label="
|
| 62 |
-
gen_button = gr.Button("
|
| 63 |
-
output_audio = gr.Audio(label="
|
| 64 |
|
| 65 |
prompt_audio.upload(update_prompt_audio,
|
| 66 |
inputs=[],
|
|
|
|
| 44 |
with gr.Blocks() as demo:
|
| 45 |
mutex = threading.Lock()
|
| 46 |
gr.HTML('''
|
| 47 |
+
<h2><center>Echo AI: High-Fidelity, Controllable, and Zero-Shot Text-to-Speech for the Real World</center></h2>
|
| 48 |
|
| 49 |
<p align="center">
|
| 50 |
<a href='https://arxiv.org/abs/2502.05512'><img src='https://img.shields.io/badge/ArXiv-2502.05512-red'></a>
|
| 51 |
+
|
| 52 |
''')
|
| 53 |
+
with gr.Tab("audio generation"):
|
| 54 |
with gr.Row():
|
| 55 |
os.makedirs("prompts",exist_ok=True)
|
| 56 |
+
prompt_audio = gr.Audio(label="Please upload reference audio",key="prompt_audio",
|
| 57 |
sources=["upload","microphone"],type="filepath")
|
| 58 |
prompt_list = os.listdir("prompts")
|
| 59 |
default = ''
|
| 60 |
if prompt_list:
|
| 61 |
default = prompt_list[0]
|
| 62 |
+
input_text_single = gr.Textbox(label="Please enter target text",key="input_text_single")
|
| 63 |
+
gen_button = gr.Button("generate speech",key="gen_button",interactive=True)
|
| 64 |
+
output_audio = gr.Audio(label="Generate results", visible=False,key="output_audio")
|
| 65 |
|
| 66 |
prompt_audio.upload(update_prompt_audio,
|
| 67 |
inputs=[],
|