imorcillo commited on
Commit
5a68f50
·
verified ·
1 Parent(s): 752ca12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -9
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 Teknologiaken hizketa-ezagutzaile automatikoko sistemaren demora!
233
- 🇪🇸 ¡Bienvenida/o a la demo del sistema de reconocimiento automático del habla de Orai NLP Teknologiak!
234
- 🇬🇧 Welcome to the demo of the automatic speech recognition system by Orai NLP Teknologiak!
235
 
236
-
237
- Grabaketak ez dira gordetzen eta automatikoki ezabatzen dira.
238
- 🇪🇸 No se guardan las grabaciones y se eliminan automáticamente.
239
- 🇬🇧 The recordings are not saved and are automatically removed.
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: