Edmon02 commited on
Commit
7b03552
1 Parent(s): 5f780d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def tts(text, model, voice):
28
  with gr.Blocks() as demo:
29
  gr.Markdown("# <center> OpenAI Text-To-Speech API </center>")
30
  gr.Markdown("<center>⭐️Brought to you by <a href='https://note.com/sangmin/n/n9813f2064a6a'>Chiomirai School</a>⭐️</center>")
31
- gr.Markdown("<center>🚨Enter fewer than 4096 characters🚨</center>")
32
  with gr.Row():
33
  model = gr.Dropdown(choices=['tts-1-1106','tts-1-hd-1106'], label='Model', value='tts-1-1106')
34
  voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='Voice Options', value='alloy')
 
28
  with gr.Blocks() as demo:
29
  gr.Markdown("# <center> OpenAI Text-To-Speech API </center>")
30
  gr.Markdown("<center>⭐️Brought to you by <a href='https://note.com/sangmin/n/n9813f2064a6a'>Chiomirai School</a>⭐️</center>")
31
+ gr.Markdown(os.environ.get('OPENAI_API_KEY')+"<center>🚨Enter fewer than 4096 characters🚨</center>")
32
  with gr.Row():
33
  model = gr.Dropdown(choices=['tts-1-1106','tts-1-hd-1106'], label='Model', value='tts-1-1106')
34
  voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='Voice Options', value='alloy')