Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,12 +33,12 @@ def tts(text, model, voice, api_key):
|
|
| 33 |
|
| 34 |
|
| 35 |
with gr.Blocks() as demo:
|
| 36 |
-
gr.Markdown("# <center>
|
| 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='Enter your API key to access the TTS demo')
|
| 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='Voice Options', value='
|
| 42 |
|
| 43 |
text = gr.Textbox(label="Input text", placeholder="Enter your text and then click on the 'Text-To-Speech' button, or simply press the Enter key.")
|
| 44 |
btn = gr.Button("Text-To-Speech")
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
with gr.Blocks() as demo:
|
| 36 |
+
gr.Markdown("# <center> Alyxsissy TTS Preview </center>")
|
| 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='Enter your API key to access the TTS demo')
|
| 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 'Text-To-Speech' button, or simply press the Enter key.")
|
| 44 |
btn = gr.Button("Text-To-Speech")
|