Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,14 +80,14 @@ def transcribe_file(audio_upload, language):
|
|
80 |
|
81 |
|
82 |
css_content = """
|
83 |
-
|
84 |
font-size: 1.1rem;
|
85 |
line-height: 1.6;
|
86 |
text-align: center;
|
87 |
color: #333;
|
88 |
}
|
89 |
|
90 |
-
|
91 |
background-color: #4CAF50; /* green */
|
92 |
color: white;
|
93 |
padding: 10px 20px;
|
@@ -100,9 +100,10 @@ css_content = """
|
|
100 |
transition: background-color 0.3s ease;
|
101 |
}
|
102 |
|
103 |
-
|
104 |
background-color: #388E3C;
|
105 |
}
|
|
|
106 |
.intro-message {
|
107 |
position: fixed;
|
108 |
top: 0; left: 0;
|
@@ -253,14 +254,18 @@ with demo:
|
|
253 |
with intro:
|
254 |
gr.Markdown("""
|
255 |
Ongi etorri LANGSWITCH-en demora, Orai NLP Teknologiak garatutako hizketa-ezagutzaile eleanitza!
|
|
|
256 |
🇪🇸 ¡Bienvenida/o a la demo de LANGSWITCH, el sistema de reconocimiento automático del habla multilingüe desarrollado por Orai NLP Teknologiak!
|
|
|
257 |
🇬🇧 Welcome to the LANGSWITCH demo, the multilingual automatic speech recogniser developed by Orai NLP Teknologiak!
|
258 |
|
259 |
Grabaketak ez dira gordetzen eta automatikoki ezabatzen dira.
|
|
|
260 |
🇪🇸 No se guardan las grabaciones y se eliminan automáticamente.
|
|
|
261 |
🇬🇧 The recordings are not saved and are automatically removed.
|
262 |
-
""", elem_id="intro-text")
|
263 |
-
ok_button = gr.Button("OK", elem_id="ok-button")
|
264 |
ok_button.click(fn=start_app, outputs=[intro, app_block])
|
265 |
|
266 |
with app_block:
|
@@ -309,27 +314,7 @@ with demo:
|
|
309 |
],
|
310 |
allow_flagging="never",
|
311 |
)
|
312 |
-
|
313 |
-
###############################
|
314 |
-
#popup = gr.Column(visible=False, elem_classes="popup-overlay")
|
315 |
-
#with popup:
|
316 |
-
# with gr.Column(elem_classes=["popup-box"]):
|
317 |
-
# gr.Markdown(
|
318 |
-
# """
|
319 |
-
# ### ℹ️ Notice
|
320 |
-
#
|
321 |
-
# Grabaketak ez dira gordetzen eta automatikoki ezabatzen dira.
|
322 |
-
# No se guardan las grabaciones y se eliminan automáticamente.
|
323 |
-
# The recordings are not saved and are automatically removed.
|
324 |
-
# """
|
325 |
-
# )
|
326 |
-
# ok_btn = gr.Button("OK", elem_classes=["popup-button"])
|
327 |
-
# ok_btn.click(fn=hide_popup, outputs=popup)
|
328 |
-
|
329 |
-
## Show on load
|
330 |
-
#demo.load(fn=show_popup, outputs=popup)
|
331 |
-
#
|
332 |
-
###################
|
333 |
|
334 |
gr.HTML("""
|
335 |
<div id="orai-info">
|
|
|
80 |
|
81 |
|
82 |
css_content = """
|
83 |
+
.intro-text {
|
84 |
font-size: 1.1rem;
|
85 |
line-height: 1.6;
|
86 |
text-align: center;
|
87 |
color: #333;
|
88 |
}
|
89 |
|
90 |
+
.ok-button {
|
91 |
background-color: #4CAF50; /* green */
|
92 |
color: white;
|
93 |
padding: 10px 20px;
|
|
|
100 |
transition: background-color 0.3s ease;
|
101 |
}
|
102 |
|
103 |
+
.ok-button:hover {
|
104 |
background-color: #388E3C;
|
105 |
}
|
106 |
+
|
107 |
.intro-message {
|
108 |
position: fixed;
|
109 |
top: 0; left: 0;
|
|
|
254 |
with intro:
|
255 |
gr.Markdown("""
|
256 |
Ongi etorri LANGSWITCH-en demora, Orai NLP Teknologiak garatutako hizketa-ezagutzaile eleanitza!
|
257 |
+
|
258 |
🇪🇸 ¡Bienvenida/o a la demo de LANGSWITCH, el sistema de reconocimiento automático del habla multilingüe desarrollado por Orai NLP Teknologiak!
|
259 |
+
|
260 |
🇬🇧 Welcome to the LANGSWITCH demo, the multilingual automatic speech recogniser developed by Orai NLP Teknologiak!
|
261 |
|
262 |
Grabaketak ez dira gordetzen eta automatikoki ezabatzen dira.
|
263 |
+
|
264 |
🇪🇸 No se guardan las grabaciones y se eliminan automáticamente.
|
265 |
+
|
266 |
🇬🇧 The recordings are not saved and are automatically removed.
|
267 |
+
""", elem_id=["intro-text"])
|
268 |
+
ok_button = gr.Button("OK", elem_id=["ok-button"])
|
269 |
ok_button.click(fn=start_app, outputs=[intro, app_block])
|
270 |
|
271 |
with app_block:
|
|
|
314 |
],
|
315 |
allow_flagging="never",
|
316 |
)
|
317 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
|
319 |
gr.HTML("""
|
320 |
<div id="orai-info">
|