Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,7 @@ LocaleNLP Translation Service
|
|
| 5 |
A multi-language translation application supporting English, Wolof, Hausa, and Darija.
|
| 6 |
Features text, audio, and document translation with automatic chaining for all language pairs.
|
| 7 |
|
| 8 |
-
Author: LocaleNLP
|
| 9 |
-
Version: 2.1.0
|
| 10 |
"""
|
| 11 |
|
| 12 |
import os
|
|
@@ -472,20 +471,8 @@ class TranslationApp:
|
|
| 472 |
|
| 473 |
with gr.Blocks(
|
| 474 |
title="LocaleNLP Translation Service",
|
| 475 |
-
theme=gr.themes.
|
| 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
|
|
|
|
| 5 |
A multi-language translation application supporting English, Wolof, Hausa, and Darija.
|
| 6 |
Features text, audio, and document translation with automatic chaining for all language pairs.
|
| 7 |
|
| 8 |
+
Author: LocaleNLP
|
|
|
|
| 9 |
"""
|
| 10 |
|
| 11 |
import os
|
|
|
|
| 471 |
|
| 472 |
with gr.Blocks(
|
| 473 |
title="LocaleNLP Translation Service",
|
| 474 |
+
theme=gr.themes.Monochrome()
|
| 475 |
) as interface:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 476 |
# Header
|
| 477 |
gr.Markdown("""
|
| 478 |
# 🌍 LocaleNLP Translation Service
|