Dominion-John commited on
Commit
62a69fb
ยท
verified ยท
1 Parent(s): 58df3ab

Update webui.py

Browse files
Files changed (1) hide show
  1. webui.py +7 -6
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
- <h2><center>IndexTTS: An Industrial-Level Controllable and Efficient Zero-Shot Text-To-Speech System</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
- with gr.Tab("้Ÿณ้ข‘็”Ÿๆˆ"):
53
  with gr.Row():
54
  os.makedirs("prompts",exist_ok=True)
55
- prompt_audio = gr.Audio(label="่ฏทไธŠไผ ๅ‚่€ƒ้Ÿณ้ข‘",key="prompt_audio",
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="่ฏท่พ“ๅ…ฅ็›ฎๆ ‡ๆ–‡ๆœฌ",key="input_text_single")
62
- gen_button = gr.Button("็”Ÿๆˆ่ฏญ้Ÿณ",key="gen_button",interactive=True)
63
- output_audio = gr.Audio(label="็”Ÿๆˆ็ป“ๆžœ", visible=False,key="output_audio")
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=[],