Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,6 +80,29 @@ def transcribe_file(audio_upload, language):
|
|
80 |
|
81 |
|
82 |
css_content = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
.intro-message {
|
84 |
position: fixed;
|
85 |
top: 0; left: 0;
|
@@ -229,16 +252,15 @@ with demo:
|
|
229 |
|
230 |
with intro:
|
231 |
gr.Markdown("""
|
232 |
-
Ongi etorri Orai NLP
|
233 |
-
🇪🇸 ¡Bienvenida/o a la demo
|
234 |
-
🇬🇧 Welcome to the demo
|
235 |
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
""")
|
241 |
-
ok_button = gr.Button("OK")
|
242 |
ok_button.click(fn=start_app, outputs=[intro, app_block])
|
243 |
|
244 |
with app_block:
|
|
|
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;
|
94 |
+
border-radius: 8px;
|
95 |
+
margin-top: 20px;
|
96 |
+
border: none;
|
97 |
+
font-weight: bold;
|
98 |
+
cursor: pointer;
|
99 |
+
font-size: 1rem;
|
100 |
+
transition: background-color 0.3s ease;
|
101 |
+
}
|
102 |
+
|
103 |
+
.ok-button:hover {
|
104 |
+
background-color: #388E3C;
|
105 |
+
}
|
106 |
.intro-message {
|
107 |
position: fixed;
|
108 |
top: 0; left: 0;
|
|
|
252 |
|
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:
|