alexneakameni commited on
Commit
a5d5d37
·
verified ·
1 Parent(s): da2ee46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -32,7 +32,14 @@ demo = gr.Interface(
32
  ],
33
  outputs=gr.Textbox(label="Predicted Languages"),
34
  title="🌍 Language Detection",
35
- description="Detects the language of a given text using a fine-tuned BERT model. Returns the top-k most probable languages."
 
 
 
 
 
 
 
36
  )
37
 
38
  demo.launch()
 
32
  ],
33
  outputs=gr.Textbox(label="Predicted Languages"),
34
  title="🌍 Language Detection",
35
+ description="Detects the language of a given text using a fine-tuned BERT model. Returns the top-k most probable languages.",
36
+ examples=[
37
+ ["Hello, how are you?", 5],
38
+ ["Bonjour, comment ça va?", 5],
39
+ ["Hola, ¿cómo estás?", 5],
40
+ ["Hallo, wie geht es dir?", 5],
41
+ ["Привет, как дела?", 5]
42
+ ]
43
  )
44
 
45
  demo.launch()