Tonic commited on
Commit
a479a3f
1 Parent(s): 540a7bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -84,13 +84,17 @@ with gr.Blocks() as demo:
84
  gr.Markdown(title)
85
  output_audio = gr.Audio(label="🌟Collabora🌬️💬📝WhisperSpeech")
86
  generate_button = gr.Button("Try 🌟Collabora🌬️💬📝WhisperSpeech")
 
 
 
 
 
 
 
 
87
  with gr.Row():
88
- text_input = gr.Textbox(label="Enter multilingual text💬📝", placeholder="e.g., <en> Hello <fr> Bonjour <es> Hola")
89
- speaker_input = gr.Audio(label="Upload or Record Speaker Audio (optional)🌬️💬", sources=["upload", "microphone"])
90
- with gr.Row():
91
- with gr.Accordion("Available Languages and Their Tags", open=False):
92
- formatted_language_list = "\n".join([f"`<{lang}>` {LANGUAGES[lang]}" for lang in LANGUAGES])
93
- gr.Markdown(formatted_language_list)
94
  with gr.Row():
95
  with gr.Accordion("Try Multilingual Text Examples", open=False):
96
  gr.Examples(
@@ -101,6 +105,7 @@ with gr.Blocks() as demo:
101
  cache_examples=False,
102
  label="Try these to get started !🌟🌬️"
103
  )
 
104
  generate_button.click(whisper_speech_demo, inputs=[text_input, speaker_input], outputs=output_audio)
105
 
106
  demo.launch()
 
84
  gr.Markdown(title)
85
  output_audio = gr.Audio(label="🌟Collabora🌬️💬📝WhisperSpeech")
86
  generate_button = gr.Button("Try 🌟Collabora🌬️💬📝WhisperSpeech")
87
+ with gr.Accordion("🌟Collabora🌬️WhisperSpeech💬Voice Print and📝Language List", open=False):
88
+ with gr.Row():
89
+ speaker_input = gr.Audio(label="Upload or Record Speaker Audio (optional)🌬️💬",
90
+ sources=["upload", "microphone"])
91
+ with gr.Row():
92
+ with gr.Accordion("Available Languages and Their Tags", open=False):
93
+ formatted_language_list = "\n".join([f"`<{lang}>` {LANGUAGES[lang]}" for lang in LANGUAGES])
94
+ gr.Markdown(formatted_language_list)
95
  with gr.Row():
96
+ text_input = gr.Textbox(label="Enter multilingual text💬📝",
97
+ placeholder="e.g., <en> Hello <fr> Bonjour <es> Hola")
 
 
 
 
98
  with gr.Row():
99
  with gr.Accordion("Try Multilingual Text Examples", open=False):
100
  gr.Examples(
 
105
  cache_examples=False,
106
  label="Try these to get started !🌟🌬️"
107
  )
108
+
109
  generate_button.click(whisper_speech_demo, inputs=[text_input, speaker_input], outputs=output_audio)
110
 
111
  demo.launch()