Hilley commited on
Commit
ab45b4c
1 Parent(s): c6ad5e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -199,7 +199,7 @@ async def text_to_speech_edge(text, audio_ref, language_code):
199
 
200
 
201
  with gr.Blocks() as demo:
202
- gr.Markdown("# Enjoy chatting with your ai friends on website, telegram and so on! (https://linkin.love)")
203
 
204
  default_text = "Today a man knocked on my door and asked for a small donation toward the local swimming pool. I gave him a glass of water."
205
  text_input = gr.Textbox(label="Input Text", lines=4, placeholder="Please Input Text...", value=default_text)
@@ -246,11 +246,11 @@ with gr.Blocks() as demo:
246
 
247
  with gr.Tab("💕multilingual"):
248
  language = gr.Dropdown(choices=list(language_dict.keys()), value=list(language_dict.keys())[15], label="请选择文本对应的语言及说话人")
249
- generate_button_ml = gr.Button("开始语音情感真实复刻吧!", variant="primary")
250
- audio_ml = gr.Audio(label="为您合成的专属语音", type="filepath")
251
  generate_button_ml.click(text_to_speech_edge, [text_input, voice_ref, language], audio_ml)
252
 
253
- parser = argparse.ArgumentParser(description='ChatTTS demo Launch')
254
  parser.add_argument('--server_name', type=str, default='0.0.0.0', help='Server name')
255
  parser.add_argument('--server_port', type=int, default=8080, help='Server port')
256
  args = parser.parse_args()
 
199
 
200
 
201
  with gr.Blocks() as demo:
202
+ # gr.Markdown("# ❣️❣️")
203
 
204
  default_text = "Today a man knocked on my door and asked for a small donation toward the local swimming pool. I gave him a glass of water."
205
  text_input = gr.Textbox(label="Input Text", lines=4, placeholder="Please Input Text...", value=default_text)
 
246
 
247
  with gr.Tab("💕multilingual"):
248
  language = gr.Dropdown(choices=list(language_dict.keys()), value=list(language_dict.keys())[15], label="请选择文本对应的语言及说话人")
249
+ generate_button_ml = gr.Button("Generate!", variant="primary")
250
+ audio_ml = gr.Audio(label="Output Audio", type="filepath")
251
  generate_button_ml.click(text_to_speech_edge, [text_input, voice_ref, language], audio_ml)
252
 
253
+ parser = argparse.ArgumentParser(description='ChatVC demo Launch')
254
  parser.add_argument('--server_name', type=str, default='0.0.0.0', help='Server name')
255
  parser.add_argument('--server_port', type=int, default=8080, help='Server port')
256
  args = parser.parse_args()