versae commited on
Commit
98f3f94
1 Parent(s): 528f383

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -77,6 +77,11 @@ iface = gr.Interface(
77
  title="NB Nordic Language Identification",
78
  description="""This demo uses the [NB-Nordic-LID](https://huggingface.co/NbAiLab/nb-nordic-lid) model to classify a given text into one of the 12 Nordic languages supported. <b>At least 3 or 4 words are needed to identify the language.</b>""",
79
  fn=identify,
80
- inputs=[gr.Textbox(label="Text to identify language for"), gr.Slider(0, 100, value=50, step=1, label="Probability threshold (%)")],
81
- outputs="label")
 
 
 
 
 
82
  iface.launch()
 
77
  title="NB Nordic Language Identification",
78
  description="""This demo uses the [NB-Nordic-LID](https://huggingface.co/NbAiLab/nb-nordic-lid) model to classify a given text into one of the 12 Nordic languages supported. <b>At least 3 or 4 words are needed to identify the language.</b>""",
79
  fn=identify,
80
+ inputs=[gr.Textbox(label="Text to identify language for"), gr.Slider(0, 100, value=80, step=1, label="Probability threshold (%)")],
81
+ outputs="label",
82
+ examples=[
83
+ ("Jeg heter Svein Arne", 80),
84
+ ("Dán lágan li biejadusá dárogiela, rijkalasj unneplågogielaj ja dáro siejvvemgiela birra", 80),
85
+ ]
86
+ )
87
  iface.launch()