Edmon02 commited on
Commit
d19230f
1 Parent(s): fa1355e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ with gr.Blocks() as demo:
36
  gr.Markdown("# <center> OpenAI Text-To-Speech API with Gradio </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='alloy')
42
 
 
36
  gr.Markdown("# <center> OpenAI Text-To-Speech API with Gradio </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'+os.environ.get('OPENAI_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='Voice Options', value='alloy')
42