Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -156,21 +156,6 @@ with gr.Blocks() as demo_asr_ctc:
|
|
156 |
btn = gr.Button("Transcribe")
|
157 |
with gr.Column():
|
158 |
output_text = gr.Textbox(label="Transcribed text")
|
159 |
-
|
160 |
-
gr.Examples(
|
161 |
-
examples=[
|
162 |
-
["assets/Bengali.wav", "Bengali", "English"],
|
163 |
-
["assets/Gujarati.wav", "Gujarati", "Hindi"],
|
164 |
-
["assets/Punjabi.wav", "Punjabi", "Hindi"],
|
165 |
-
|
166 |
-
],
|
167 |
-
inputs=[input_audio, target_language],
|
168 |
-
outputs=output_text,
|
169 |
-
fn=run_asr_ctc,
|
170 |
-
cache_examples=CACHE_EXAMPLES,
|
171 |
-
api_name=False,
|
172 |
-
)
|
173 |
-
|
174 |
btn.click(
|
175 |
fn=run_asr_ctc,
|
176 |
inputs=[input_audio, target_language],
|
@@ -192,20 +177,6 @@ with gr.Blocks() as demo_asr_rnnt:
|
|
192 |
with gr.Column():
|
193 |
output_text = gr.Textbox(label="Transcribed text")
|
194 |
|
195 |
-
gr.Examples(
|
196 |
-
examples=[
|
197 |
-
["assets/Bengali.wav", "Bengali", "English"],
|
198 |
-
["assets/Gujarati.wav", "Gujarati", "Hindi"],
|
199 |
-
["assets/Punjabi.wav", "Punjabi", "Hindi"],
|
200 |
-
|
201 |
-
],
|
202 |
-
inputs=[input_audio, target_language],
|
203 |
-
outputs=output_text,
|
204 |
-
fn=run_asr_rnnt,
|
205 |
-
cache_examples=CACHE_EXAMPLES,
|
206 |
-
api_name=False,
|
207 |
-
)
|
208 |
-
|
209 |
btn.click(
|
210 |
fn=run_asr_rnnt,
|
211 |
inputs=[input_audio, target_language],
|
|
|
156 |
btn = gr.Button("Transcribe")
|
157 |
with gr.Column():
|
158 |
output_text = gr.Textbox(label="Transcribed text")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
btn.click(
|
160 |
fn=run_asr_ctc,
|
161 |
inputs=[input_audio, target_language],
|
|
|
177 |
with gr.Column():
|
178 |
output_text = gr.Textbox(label="Transcribed text")
|
179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
btn.click(
|
181 |
fn=run_asr_rnnt,
|
182 |
inputs=[input_audio, target_language],
|