tjysdsg commited on
Commit
70a54b5
1 Parent(s): 37c7fb5

Add some examples

Browse files
app.py CHANGED
@@ -112,6 +112,28 @@ def main():
112
  type="numpy",
113
  )
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  btn.click(
116
  fn=app.s2st,
117
  inputs=[input_audio],
 
112
  type="numpy",
113
  )
114
 
115
+ # Placeholders so that the example section can show these values
116
+ source_text = gr.Text(label='Source Text', visible=False)
117
+ target_text = gr.Text(label='Target Text', visible=False)
118
+
119
+ # Examples
120
+ with gr.Row():
121
+ gr.Examples(
122
+ examples=[
123
+ ["examples/example1.wav",
124
+ "fue enterrada en el cementerio forest lawn memorial park de hollywood hills",
125
+ "she was buried at the forest lawn memorial park of hollywood hills"],
126
+ ["examples/example2.wav",
127
+ "diversos otros músicos han interpretado esta canción en conciertos en vivo",
128
+ "many other musicians have played this song in live concerts"],
129
+ ["examples/example3.wav",
130
+ "es gómez-moreno el primero en situar su origen en guadalajara, hoy ampliamente aceptado",
131
+ "gomez moreno was the first person to place its origin in guadalajara which is now broadly accepted"],
132
+ ],
133
+ inputs=[input_audio, source_text, target_text],
134
+ outputs=[output_audio],
135
+ )
136
+
137
  btn.click(
138
  fn=app.s2st,
139
  inputs=[input_audio],
examples/example1.wav ADDED
Binary file (256 kB). View file
 
examples/example2.wav ADDED
Binary file (244 kB). View file
 
examples/example3.wav ADDED
Binary file (253 kB). View file