Spaces:
Build error
Build error
Update app.py
Browse files
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
|
42 |
|
43 |
-
text = gr.Textbox(label="Input
|
44 |
-
btn = gr.Button("
|
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)
|