Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ A multi-language translation application supporting English, Wolof, Hausa, and D
|
|
| 6 |
Features text, audio, and document translation with automatic chaining for all language pairs.
|
| 7 |
|
| 8 |
Author: LocaleNLP Team
|
| 9 |
-
Version: 1.0
|
| 10 |
"""
|
| 11 |
|
| 12 |
import os
|
|
@@ -472,8 +472,20 @@ class TranslationApp:
|
|
| 472 |
|
| 473 |
with gr.Blocks(
|
| 474 |
title="LocaleNLP Translation Service",
|
| 475 |
-
theme=gr.themes.
|
| 476 |
) as interface:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 477 |
# Header
|
| 478 |
gr.Markdown("""
|
| 479 |
# 🌍 LocaleNLP Translation Service
|
|
|
|
| 6 |
Features text, audio, and document translation with automatic chaining for all language pairs.
|
| 7 |
|
| 8 |
Author: LocaleNLP Team
|
| 9 |
+
Version: 2.1.0
|
| 10 |
"""
|
| 11 |
|
| 12 |
import os
|
|
|
|
| 472 |
|
| 473 |
with gr.Blocks(
|
| 474 |
title="LocaleNLP Translation Service",
|
| 475 |
+
theme=gr.themes.Default()
|
| 476 |
) as interface:
|
| 477 |
+
# Custom CSS for black theme
|
| 478 |
+
interface.load(None, None, None, _js="""
|
| 479 |
+
() => {
|
| 480 |
+
document.documentElement.style.setProperty('--color-accent', '#000000');
|
| 481 |
+
document.documentElement.style.setProperty('--color-accent-soft', '#333333');
|
| 482 |
+
document.documentElement.style.setProperty('--color-button-primary-background-fill', '#000000');
|
| 483 |
+
document.documentElement.style.setProperty('--color-button-primary-background-fill-hover', '#333333');
|
| 484 |
+
document.documentElement.style.setProperty('--color-button-secondary-background-fill', '#000000');
|
| 485 |
+
document.documentElement.style.setProperty('--color-button-secondary-background-fill-hover', '#333333');
|
| 486 |
+
}
|
| 487 |
+
""")
|
| 488 |
+
|
| 489 |
# Header
|
| 490 |
gr.Markdown("""
|
| 491 |
# 🌍 LocaleNLP Translation Service
|