Spaces:
markmagic
/
Running on Zero

markmagic commited on
Commit
cb866d3
1 Parent(s): e36f05d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -9,7 +9,7 @@ import numpy as np
9
 
10
  import ChatTTS
11
 
12
- print("loading ChatTTS model...")
13
  chat = ChatTTS.Chat()
14
  chat.load_models()
15
 
@@ -60,9 +60,9 @@ def generate_audio(text, temperature, top_P, top_K, audio_seed_input, text_seed_
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():
@@ -94,7 +94,7 @@ with gr.Blocks() as demo:
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()
 
9
 
10
  import ChatTTS
11
 
12
+ print("loading TTS model...")
13
  chat = ChatTTS.Chat()
14
  chat.load_models()
15
 
 
60
 
61
  with gr.Blocks() as demo:
62
 
63
+ gr.Markdown("#Next Generation TTS")
64
 
65
+ default_text = "英伟达投的Sora竞品免费了,网友挤爆服务器,120秒120帧支持垫图。这个新推出的模型名为Dream Machine,现已推出免费公开测试版,支持文生视频、图生视频。"
66
  text_input = gr.Textbox(label="Input Text", lines=4, placeholder="Please Input Text...", value=default_text)
67
 
68
  with gr.Row():
 
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='Next Generation TTS 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()