alexuh commited on
Commit
98d5a03
·
1 Parent(s): 02edbb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,10 +37,10 @@ with gr.Blocks() as demo:
37
  #gr.HTML("You can also access the Streaming demo for OpenAI TTS by clicking this <a href='https://huggingface.co/spaces/ysharma/OpenAI_TTS_Streaming'>Gradio demo link</a>")
38
  with gr.Row(variant='panel'):
39
  api_key = gr.Textbox(type='password', label='OpenAI API Key', placeholder='输入你的 OpenaAI API key')
40
- model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='Model', value='tts-1')
41
  voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='选择声音', value='alloy')
42
 
43
- text = gr.Textbox(label="输入文本,支持多语言以及混合语言", placeholder="Enter your text and then click on the 'Text-To-Speech' button, or simply press the Enter key.", lines=5)
44
  btn = gr.Button("合成语音")
45
  output_audio = gr.Audio(label="Speech Output")
46
 
 
37
  #gr.HTML("You can also access the Streaming demo for OpenAI TTS by clicking this <a href='https://huggingface.co/spaces/ysharma/OpenAI_TTS_Streaming'>Gradio demo link</a>")
38
  with gr.Row(variant='panel'):
39
  api_key = gr.Textbox(type='password', label='OpenAI API Key', placeholder='输入你的 OpenaAI API key')
40
+ model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='选择模型', value='tts-1')
41
  voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='选择声音', value='alloy')
42
 
43
+ text = gr.Textbox(label="输入文本,支持多语言以及混合语言", placeholder="输入您的文本,然后单击“合成语音”按钮,或直接按 Enter 键。", lines=6)
44
  btn = gr.Button("合成语音")
45
  output_audio = gr.Audio(label="Speech Output")
46