Nymbo commited on
Commit
708c89d
·
1 Parent(s): 30b322f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -38,10 +38,10 @@ with gr.Blocks() as demo:
38
  with gr.Row(variant='panel'):
39
  api_key = gr.Textbox(type='password', label='OpenAI API Key', placeholder='Enter your API key')
40
  model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='Model', value='tts-1-hd')
41
- voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='Voice Options', value='nova')
42
 
43
- text = gr.Textbox(label="Input text", placeholder="Enter your text and then click on the button below.")
44
- btn = gr.Button("Text-To-Speech")
45
  output_audio = gr.Audio(label="Speech Output")
46
 
47
  text.submit(fn=tts, inputs=[text, model, voice, api_key], outputs=output_audio, api_name="tts_enter_key", concurrency_limit=None)
 
38
  with gr.Row(variant='panel'):
39
  api_key = gr.Textbox(type='password', label='OpenAI API Key', placeholder='Enter your API key')
40
  model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='Model', value='tts-1-hd')
41
+ voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='Voice', value='nova')
42
 
43
+ text = gr.Textbox(label="Input Text", placeholder="Enter your text and then click on the button below.")
44
+ btn = gr.Button("Run")
45
  output_audio = gr.Audio(label="Speech Output")
46
 
47
  text.submit(fn=tts, inputs=[text, model, voice, api_key], outputs=output_audio, api_name="tts_enter_key", concurrency_limit=None)