Spaces:
Runtime error
Runtime error
PhuongPhan
commited on
Commit
•
e2487fb
1
Parent(s):
320defc
Update app.py
Browse files
app.py
CHANGED
@@ -83,18 +83,6 @@ with gr.Blocks() as demo:
|
|
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 |
-
"Speech_samples/harvard.wav"
|
93 |
-
],
|
94 |
-
inputs=audio_input,
|
95 |
-
label="Try these examples"
|
96 |
-
)
|
97 |
-
|
98 |
|
99 |
with gr.Row():
|
100 |
# First interface for transcription
|
@@ -114,6 +102,19 @@ with gr.Blocks() as demo:
|
|
114 |
translated_output = gr.Textbox(label="Translated Text")
|
115 |
translate_button.click(translate_interface, inputs=[transcribed_output, lang_dropdown], outputs=translated_output)
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
gr.Markdown("---")
|
118 |
with gr.Accordion("See Details", open = False):
|
119 |
|
|
|
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 |
with gr.Row():
|
88 |
# First interface for transcription
|
|
|
102 |
translated_output = gr.Textbox(label="Translated Text")
|
103 |
translate_button.click(translate_interface, inputs=[transcribed_output, lang_dropdown], outputs=translated_output)
|
104 |
|
105 |
+
|
106 |
+
gr.Examples(
|
107 |
+
examples=[
|
108 |
+
"Speech_samples/consumer4.wav",
|
109 |
+
"Speech_samples/samples_audio-files_05-gettysburg-address-2min.wav"
|
110 |
+
"Speech_samples/samples_audio-files_12-jfk-speech-12sec.wav"
|
111 |
+
"Speech_samples/harvard.wav"
|
112 |
+
],
|
113 |
+
inputs=audio_input,
|
114 |
+
label="Try these examples"
|
115 |
+
)
|
116 |
+
|
117 |
+
|
118 |
gr.Markdown("---")
|
119 |
with gr.Accordion("See Details", open = False):
|
120 |
|