Spaces:
Runtime error
Runtime error
Ray Leung
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,6 +112,14 @@ with playground:
|
|
| 112 |
with gr.Column():
|
| 113 |
clear_button = gr.ClearButton(components=[input_audio, transcipted_text, translated_speech, translated_text], value="Clear")
|
| 114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
submit_button.click(start_process, inputs=[input_audio], outputs=[transcipted_text, translated_text, translated_speech])
|
| 116 |
|
| 117 |
playground.launch()
|
|
|
|
| 112 |
with gr.Column():
|
| 113 |
clear_button = gr.ClearButton(components=[input_audio, transcipted_text, translated_speech, translated_text], value="Clear")
|
| 114 |
|
| 115 |
+
with gr.Row():
|
| 116 |
+
gr.Examples(
|
| 117 |
+
examples=["sample.wav","sample_fr.wav"],
|
| 118 |
+
inputs=[input_audio],
|
| 119 |
+
outputs=[transcipted_text, translated_speech, translated_text],
|
| 120 |
+
run_on_click=True, cache_examples=True, fn=start_process
|
| 121 |
+
)
|
| 122 |
+
|
| 123 |
submit_button.click(start_process, inputs=[input_audio], outputs=[transcipted_text, translated_text, translated_speech])
|
| 124 |
|
| 125 |
playground.launch()
|