Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import numpy as np
|
|
9 |
|
10 |
import ChatTTS
|
11 |
|
12 |
-
print("loading
|
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("#
|
64 |
|
65 |
-
default_text = "
|
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='
|
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()
|