papluca commited on
Commit
6971908
1 Parent(s): 4bdd21d

Add language description at the bottom

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -20,12 +20,13 @@ def predict(text: str) -> dict:
20
 
21
 
22
  title = "Language detection with XLM-RoBERTa"
23
- description = "Determine the language in which your text is written. Supported languages are (20): arabic (ar), bulgarian (bg), german (de), modern greek (el), english (en), spanish (es), french (fr), hindi (hi), italian (it), japanese (ja), dutch (nl), polish (pl), portuguese (pt), russian (ru), swahili (sw), thai (th), turkish (tr), urdu (ur), vietnamese (vi), and chinese (zh)."
24
  examples = [
25
  ["Better late than never."],
26
  ["Tutto è bene ciò che finisce bene."],
27
  ["Donde hay humo, hay fuego."],
28
  ]
 
29
 
30
  app = gr.Interface(
31
  fn=predict,
@@ -38,6 +39,7 @@ app = gr.Interface(
38
  title=title,
39
  description=description,
40
  examples=examples,
 
41
  )
42
 
43
  app.launch()
 
20
 
21
 
22
  title = "Language detection with XLM-RoBERTa"
23
+ description = "Determine the language in which your text is written."
24
  examples = [
25
  ["Better late than never."],
26
  ["Tutto è bene ciò che finisce bene."],
27
  ["Donde hay humo, hay fuego."],
28
  ]
29
+ explanation = "Supported languages are (20): arabic (ar), bulgarian (bg), german (de), modern greek (el), english (en), spanish (es), french (fr), hindi (hi), italian (it), japanese (ja), dutch (nl), polish (pl), portuguese (pt), russian (ru), swahili (sw), thai (th), turkish (tr), urdu (ur), vietnamese (vi), and chinese (zh)."
30
 
31
  app = gr.Interface(
32
  fn=predict,
 
39
  title=title,
40
  description=description,
41
  examples=examples,
42
+ article=explanation,
43
  )
44
 
45
  app.launch()