Spaces:
Runtime error
Runtime error
PhuongPhan
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -82,6 +82,19 @@ with gr.Blocks() as demo:
|
|
82 |
"</p>")
|
83 |
|
84 |
gr.Markdown("<p style='text-align: center;'><i>Upload an audio file or use your microphone to transcribe speech and then translate it to different languages.</i></p>")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
with gr.Row():
|
87 |
# First interface for transcription
|
|
|
82 |
"</p>")
|
83 |
|
84 |
gr.Markdown("<p style='text-align: center;'><i>Upload an audio file or use your microphone to transcribe speech and then translate it to different languages.</i></p>")
|
85 |
+
|
86 |
+
|
87 |
+
gr.Examples(
|
88 |
+
examples=[
|
89 |
+
"Speech_samples/consumer4.wav",
|
90 |
+
"Speech_samples/samples_audio-files_05-gettysburg-address-2min.wav"
|
91 |
+
"Speech_samples/samples_audio-files_12-jfk-speech-12sec.wav"
|
92 |
+
|
93 |
+
],
|
94 |
+
inputs=audio_input,
|
95 |
+
label="Try these examples"
|
96 |
+
)
|
97 |
+
|
98 |
|
99 |
with gr.Row():
|
100 |
# First interface for transcription
|