Update webui.py
Browse files
webui.py
CHANGED
@@ -44,13 +44,13 @@ def update_prompt_audio():
|
|
44 |
with gr.Blocks() as demo:
|
45 |
mutex = threading.Lock()
|
46 |
gr.HTML('''
|
47 |
-
<h2><center>Echo AI: High-Fidelity,
|
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("
|
54 |
with gr.Row():
|
55 |
os.makedirs("prompts",exist_ok=True)
|
56 |
prompt_audio = gr.Audio(label="Please upload reference audio",key="prompt_audio",
|
@@ -60,7 +60,7 @@ with gr.Blocks() as demo:
|
|
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("
|
64 |
output_audio = gr.Audio(label="Generate results", visible=False,key="output_audio")
|
65 |
|
66 |
prompt_audio.upload(update_prompt_audio,
|
@@ -75,7 +75,7 @@ with gr.Blocks() as demo:
|
|
75 |
def main():
|
76 |
tts.load_normalizer()
|
77 |
demo.queue(20)
|
78 |
-
demo.launch(server_name="0.0.0.0")
|
79 |
|
80 |
if __name__ == "__main__":
|
81 |
main()
|
|
|
44 |
with gr.Blocks() as demo:
|
45 |
mutex = threading.Lock()
|
46 |
gr.HTML('''
|
47 |
+
<h2><center>Echo AI:loud_sound: : High-Fidelity,Controllable, and Zero-Shot Text-to-Speech and voice cloning 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 cloning and 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",
|
|
|
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,
|
|
|
75 |
def main():
|
76 |
tts.load_normalizer()
|
77 |
demo.queue(20)
|
78 |
+
demo.launch(server_name="0.0.0.0",share=True)
|
79 |
|
80 |
if __name__ == "__main__":
|
81 |
main()
|