alessandro trinca tornidor commited on
Commit
6e31dbd
·
1 Parent(s): c1390d7

feat: add examples

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -64,6 +64,13 @@ with gr.Blocks() as gradio_app:
64
  inputs=[learner_transcription, language],
65
  outputs=tts,
66
  )
 
 
 
 
 
 
 
67
  with gr.Column(scale=3, min_width=300):
68
  transcripted_text = gr.Textbox(
69
  lines=2, placeholder=None, label="Transcripted text", visible=False
@@ -117,4 +124,4 @@ with gr.Blocks() as gradio_app:
117
 
118
 
119
  if __name__ == "__main__":
120
- gradio_app.launch()
 
64
  inputs=[learner_transcription, language],
65
  outputs=tts,
66
  )
67
+ gr.Examples(
68
+ examples=[
69
+ ["Hi there, how are you?", "en"],
70
+ ["Hallo, wie geht es dir?", "de"],
71
+ ],
72
+ inputs=[learner_transcription, language],
73
+ )
74
  with gr.Column(scale=3, min_width=300):
75
  transcripted_text = gr.Textbox(
76
  lines=2, placeholder=None, label="Transcripted text", visible=False
 
124
 
125
 
126
  if __name__ == "__main__":
127
+ gradio_app.launch()