add banner to demo

#9
by davanstrien HF staff - opened
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -72,12 +72,15 @@ def translate(text: str, src_lang: str, tgt_lang: str):
72
 
73
 
74
  description = """
75
- # UNESCO Language Translator, powered by Meta and Hugging Face
 
 
 
76
 
77
  UNESCO, Meta, and Hugging Face have come together to create an accessible, high-quality translation experience in 200 languages.
78
 
79
- This is made possible through an open approach to AI innovation using Meta's open-sourced No Language Left Behind (NLLB) AI model, hosted on Hugging Face Spaces. """
80
-
81
  disclaimer = """
82
  ## Disclaimer
83
 
 
72
 
73
 
74
  description = """
75
+ <div style="text-align: center;">
76
+ <img src="https://huggingface.co/spaces/UNESCO/nllb/resolve/main/UNESCO_META_HF_BANNER.png" alt="UNESCO Meta Hugging Face Banner" style="max-width: 800px; width: 100%; margin: 0 auto;">
77
+ <h1 style="color: #0077be;">UNESCO Language Translator, powered by Meta and Hugging Face</h1>
78
+ </div>
79
 
80
  UNESCO, Meta, and Hugging Face have come together to create an accessible, high-quality translation experience in 200 languages.
81
 
82
+ This is made possible through an open approach to AI innovation using Meta's open-sourced No Language Left Behind (NLLB) AI model, hosted on Hugging Face Spaces.
83
+ """
84
  disclaimer = """
85
  ## Disclaimer
86