Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -86,23 +86,13 @@ This space uses https://huggingface.co/Yehor/w2v-bert-2.0-uk-v2.1 model to recog
|
|
86 |
""".strip()
|
87 |
|
88 |
description_foot = f"""
|
89 |
-
## Community
|
90 |
-
|
91 |
-
- **Discord**: https://discord.gg/yVAjkBgmt4
|
92 |
-
- Speech Recognition: https://t.me/speech_recognition_uk
|
93 |
-
- Speech Synthesis: https://t.me/speech_synthesis_uk
|
94 |
-
|
95 |
-
## More
|
96 |
-
|
97 |
-
Check out other ASR models: https://github.com/egorsmkv/speech-recognition-uk
|
98 |
-
|
99 |
{authors_table}
|
100 |
""".strip()
|
101 |
|
102 |
transcription_value = """
|
103 |
Recognized text will appear here.
|
104 |
|
105 |
-
Choose **an example file** below the
|
106 |
""".strip()
|
107 |
|
108 |
tech_env = f"""
|
@@ -222,14 +212,14 @@ with demo:
|
|
222 |
|
223 |
gr.Markdown("## Usage")
|
224 |
|
225 |
-
with gr.
|
226 |
audio_file = gr.Audio(label="Audio file", type="filepath")
|
227 |
transcription = gr.Markdown(
|
228 |
label="Transcription",
|
229 |
value=transcription_value,
|
230 |
)
|
231 |
|
232 |
-
gr.Button("
|
233 |
inference,
|
234 |
concurrency_limit=concurrency_limit,
|
235 |
inputs=audio_file,
|
|
|
86 |
""".strip()
|
87 |
|
88 |
description_foot = f"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
{authors_table}
|
90 |
""".strip()
|
91 |
|
92 |
transcription_value = """
|
93 |
Recognized text will appear here.
|
94 |
|
95 |
+
Choose **an example file** below the Run button, upload **your audio file**, or use **the microphone** to record something.
|
96 |
""".strip()
|
97 |
|
98 |
tech_env = f"""
|
|
|
212 |
|
213 |
gr.Markdown("## Usage")
|
214 |
|
215 |
+
with gr.Column():
|
216 |
audio_file = gr.Audio(label="Audio file", type="filepath")
|
217 |
transcription = gr.Markdown(
|
218 |
label="Transcription",
|
219 |
value=transcription_value,
|
220 |
)
|
221 |
|
222 |
+
gr.Button("Run").click(
|
223 |
inference,
|
224 |
concurrency_limit=concurrency_limit,
|
225 |
inputs=audio_file,
|