jonathanagustin commited on
Commit
0034b02
1 Parent(s): 0dbb78f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -89,6 +89,15 @@ def main():
89
  with gr.Column(scale=1):
90
  gr.Markdown("### Voice Previews")
91
 
 
 
 
 
 
 
 
 
 
92
  # A function to update the preview_audio component
93
  def play_voice_sample(voice):
94
  return gr.update(value=VOICE_PREVIEW_FILES[voice])
@@ -107,16 +116,6 @@ def main():
107
  fn=lambda v=voice: play_voice_sample(v),
108
  outputs=preview_audio,
109
  )
110
-
111
- # Create an audio component to play the samples
112
- preview_audio = gr.Audio(
113
- interactive=False,
114
- label="Preview Audio",
115
- value=None,
116
- visible=True,
117
- autoplay=True,
118
- )
119
-
120
  with gr.Column(scale=1):
121
  api_key_input = gr.Textbox(
122
  label="OpenAI API Key",
 
89
  with gr.Column(scale=1):
90
  gr.Markdown("### Voice Previews")
91
 
92
+ # Create an audio component to play the samples
93
+ preview_audio = gr.Audio(
94
+ interactive=False,
95
+ label="Preview Audio",
96
+ value=None,
97
+ visible=True,
98
+ autoplay=True,
99
+ )
100
+
101
  # A function to update the preview_audio component
102
  def play_voice_sample(voice):
103
  return gr.update(value=VOICE_PREVIEW_FILES[voice])
 
116
  fn=lambda v=voice: play_voice_sample(v),
117
  outputs=preview_audio,
118
  )
 
 
 
 
 
 
 
 
 
 
119
  with gr.Column(scale=1):
120
  api_key_input = gr.Textbox(
121
  label="OpenAI API Key",