Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def update_passage(passage_name):
|
|
17 |
print(sum, wikipedia.search(passage_name))
|
18 |
passage.value = sum
|
19 |
except:
|
20 |
-
sum = "Please specify your article
|
21 |
|
22 |
return sum, "", gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
|
23 |
|
@@ -195,7 +195,8 @@ with block:
|
|
195 |
</div>
|
196 |
<p style="margin-bottom: 10px; font-size: 94%">
|
197 |
|
198 |
-
The point of the game is to say the given text as fast as possible without errors. Each error adds a one second
|
|
|
199 |
</p>
|
200 |
</div>
|
201 |
"""
|
@@ -214,7 +215,7 @@ with block:
|
|
214 |
btn = gr.Button("Transcribe")
|
215 |
text = gr.Textbox(show_label=False, elem_id="result-textarea")
|
216 |
with gr.Row().style(mobile_collapse=False, equal_height=True):
|
217 |
-
passage_name = gr.Textbox(label="Challenge your friends with another Wikipedia article theme", placeholder="The pirate code")
|
218 |
btn2 = gr.Button("Fetch another article")
|
219 |
with gr.Group(elem_id="share-btn-container"):
|
220 |
community_icon = gr.HTML(community_icon_html, visible=False)
|
|
|
17 |
print(sum, wikipedia.search(passage_name))
|
18 |
passage.value = sum
|
19 |
except:
|
20 |
+
sum = "Please specify your article theme differently"
|
21 |
|
22 |
return sum, "", gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
|
23 |
|
|
|
195 |
</div>
|
196 |
<p style="margin-bottom: 10px; font-size: 94%">
|
197 |
|
198 |
+
The point of the game is to say the given text as fast as possible without errors. Each error adds a one second penalty to the final time and is measured by the WER metric multiplied by text length. Once you mastered the pirate code example (my PB is 15.4), challenge your friends with another article of your choice !
|
199 |
+
The STT is powered by Whisper, a general-purpose speech recognition model. It is trained on a large dataset of diverse audio and is also a multi-task model that can perform multilingual speech recognition as well as speech translation and language identification. This demo cuts audio after around 30 secs.
|
200 |
</p>
|
201 |
</div>
|
202 |
"""
|
|
|
215 |
btn = gr.Button("Transcribe")
|
216 |
text = gr.Textbox(show_label=False, elem_id="result-textarea")
|
217 |
with gr.Row().style(mobile_collapse=False, equal_height=True):
|
218 |
+
passage_name = gr.Textbox(label="Challenge your friends with another Wikipedia article theme:", placeholder="The pirate code")
|
219 |
btn2 = gr.Button("Fetch another article")
|
220 |
with gr.Group(elem_id="share-btn-container"):
|
221 |
community_icon = gr.HTML(community_icon_html, visible=False)
|