Spaces:
markmagic
/
Running on Zero

liuxiaopai commited on
Commit
e36f05d
1 Parent(s): 55c4573
ChatTTS/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (160 Bytes). View file
 
ChatTTS/__pycache__/core.cpython-310.pyc ADDED
Binary file (5.2 kB). View file
 
ChatTTS/infer/__pycache__/api.cpython-310.pyc ADDED
Binary file (3.16 kB). View file
 
ChatTTS/model/__pycache__/dvae.cpython-310.pyc ADDED
Binary file (4.89 kB). View file
 
ChatTTS/model/__pycache__/gpt.cpython-310.pyc ADDED
Binary file (7.27 kB). View file
 
ChatTTS/utils/__pycache__/gpu_utils.cpython-310.pyc ADDED
Binary file (1.03 kB). View file
 
ChatTTS/utils/__pycache__/infer_utils.cpython-310.pyc ADDED
Binary file (1.82 kB). View file
 
ChatTTS/utils/__pycache__/io_utils.cpython-310.pyc ADDED
Binary file (699 Bytes). View file
 
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- title: Chattts Zero
3
- emoji: 🐢
4
  colorFrom: pink
5
  colorTo: indigo
6
  sdk: gradio
 
1
  ---
2
+ title: ChatTTS Free
3
+ emoji: 🔥
4
  colorFrom: pink
5
  colorTo: indigo
6
  sdk: gradio
app.py CHANGED
@@ -59,29 +59,28 @@ def generate_audio(text, temperature, top_P, top_K, audio_seed_input, text_seed_
59
 
60
 
61
  with gr.Blocks() as demo:
62
- gr.LoginButton()
63
- gr.Markdown("# ChatTTS Webui")
64
- gr.Markdown("ChatTTS Model: [2noise/ChatTTS](https://github.com/2noise/ChatTTS)")
65
 
66
- default_text = "四川美食确实以辣闻名,但也有不辣的选择。比如甜水面、赖汤圆、蛋烘糕、叶儿粑等,这些小吃口味温和,甜而不腻,也很受欢迎。"
 
 
67
  text_input = gr.Textbox(label="Input Text", lines=4, placeholder="Please Input Text...", value=default_text)
68
 
69
  with gr.Row():
70
- refine_text_checkbox = gr.Checkbox(label="Refine text", value=True)
71
- temperature_slider = gr.Slider(minimum=0.00001, maximum=1.0, step=0.00001, value=0.3, label="Audio temperature")
72
- top_p_slider = gr.Slider(minimum=0.1, maximum=0.9, step=0.05, value=0.7, label="top_P")
73
- top_k_slider = gr.Slider(minimum=1, maximum=20, step=1, value=20, label="top_K")
74
 
75
  with gr.Row():
76
- audio_seed_input = gr.Number(value=42, label="Audio Seed")
77
- generate_audio_seed = gr.Button("\U0001F3B2")
78
- text_seed_input = gr.Number(value=42, label="Text Seed")
79
- generate_text_seed = gr.Button("\U0001F3B2")
80
 
81
  generate_button = gr.Button("Generate")
82
 
83
  text_output = gr.Textbox(label="Output Text", interactive=False)
84
- audio_output = gr.Audio(label="Output Audio")
85
 
86
  generate_audio_seed.click(generate_seed,
87
  inputs=[],
@@ -95,7 +94,7 @@ with gr.Blocks() as demo:
95
  inputs=[text_input, temperature_slider, top_p_slider, top_k_slider, audio_seed_input, text_seed_input, refine_text_checkbox],
96
  outputs=[audio_output, text_output])
97
 
98
- parser = argparse.ArgumentParser(description='ChatTTS demo Launch')
99
  parser.add_argument('--server_name', type=str, default='0.0.0.0', help='Server name')
100
  parser.add_argument('--server_port', type=int, default=8080, help='Server port')
101
  args = parser.parse_args()
@@ -106,4 +105,4 @@ args = parser.parse_args()
106
 
107
 
108
  if __name__ == '__main__':
109
- demo.launch(share=True)
 
59
 
60
 
61
  with gr.Blocks() as demo:
 
 
 
62
 
63
+ gr.Markdown("# ChatTTS Free")
64
+
65
+ default_text = "ChatTTS is a text-to-speech model designed specifically for dialogue scenario such as Large Language Model assistant. It supports both English and Chinese languages. 它支持英文和中文两种语言,生成的语音效果自然、非常逼真、非常牛。"
66
  text_input = gr.Textbox(label="Input Text", lines=4, placeholder="Please Input Text...", value=default_text)
67
 
68
  with gr.Row():
69
+ refine_text_checkbox = gr.Checkbox(label="Refine text", value=True, visible=False)
70
+ temperature_slider = gr.Slider(minimum=0.00001, maximum=1.0, step=0.00001, value=0.3, label="Audio temperature", visible=False)
71
+ top_p_slider = gr.Slider(minimum=0.1, maximum=0.9, step=0.05, value=0.7, label="top_P", visible=False)
72
+ top_k_slider = gr.Slider(minimum=1, maximum=20, step=1, value=20, label="top_K", visible=False)
73
 
74
  with gr.Row():
75
+ audio_seed_input = gr.Number(value=42, label="Audio Seed", visible=False)
76
+ generate_audio_seed = gr.Button("\U0001F3B2", visible=False)
77
+ text_seed_input = gr.Number(value=42, label="Text Seed", visible=False)
78
+ generate_text_seed = gr.Button("\U0001F3B2", visible=False)
79
 
80
  generate_button = gr.Button("Generate")
81
 
82
  text_output = gr.Textbox(label="Output Text", interactive=False)
83
+ audio_output = gr.Audio(label="Output Audio",autoplay=True)
84
 
85
  generate_audio_seed.click(generate_seed,
86
  inputs=[],
 
94
  inputs=[text_input, temperature_slider, top_p_slider, top_k_slider, audio_seed_input, text_seed_input, refine_text_checkbox],
95
  outputs=[audio_output, text_output])
96
 
97
+ parser = argparse.ArgumentParser(description='ChatTTS Online')
98
  parser.add_argument('--server_name', type=str, default='0.0.0.0', help='Server name')
99
  parser.add_argument('--server_port', type=int, default=8080, help='Server port')
100
  args = parser.parse_args()
 
105
 
106
 
107
  if __name__ == '__main__':
108
+ demo.launch(share=True, show_api=False)