jonathanagustin commited on
Commit
8991bd4
1 Parent(s): 055f404

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -55,6 +55,14 @@ def main():
55
  # Set static paths for Gradio to serve
56
  gr.set_static_paths(paths=[PREVIEW_DIR])
57
 
 
 
 
 
 
 
 
 
58
  with gr.Blocks(title="OpenAI - Text to Speech") as demo:
59
  gr.Markdown("# OpenAI Text-to-Speech Demo")
60
  with gr.Row():
@@ -68,14 +76,6 @@ def main():
68
  label=voice.capitalize(),
69
  )
70
 
71
- # Create the 'preview_audio' component
72
- preview_audio = gr.Audio(
73
- interactive=False,
74
- label="Echo",
75
- value=VOICE_PREVIEW_FILES['echo'],
76
- visible=True,
77
- )
78
-
79
  # Create buttons for each voice
80
  for voice in VOICE_OPTIONS:
81
  voice_button = gr.Button(
 
55
  # Set static paths for Gradio to serve
56
  gr.set_static_paths(paths=[PREVIEW_DIR])
57
 
58
+ # Create the 'preview_audio' component
59
+ preview_audio = gr.Audio(
60
+ interactive=False,
61
+ label="Echo",
62
+ value=VOICE_PREVIEW_FILES['echo'],
63
+ visible=True,
64
+ )
65
+
66
  with gr.Blocks(title="OpenAI - Text to Speech") as demo:
67
  gr.Markdown("# OpenAI Text-to-Speech Demo")
68
  with gr.Row():
 
76
  label=voice.capitalize(),
77
  )
78
 
 
 
 
 
 
 
 
 
79
  # Create buttons for each voice
80
  for voice in VOICE_OPTIONS:
81
  voice_button = gr.Button(