Spaces:
Sleeping
Sleeping
Adding North Sámi example
Browse files
app.py
CHANGED
|
@@ -78,11 +78,12 @@ iface = gr.Interface(
|
|
| 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=
|
| 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 |
["Skriftspråket har derfor helst brukt ord som kan førast attende til gammalnorsk der slike har funnest i levande talemål.", 80],
|
|
|
|
| 86 |
]
|
| 87 |
)
|
| 88 |
iface.launch()
|
|
|
|
| 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=gr.Label(label="Prediction"),
|
| 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 |
["Skriftspråket har derfor helst brukt ord som kan førast attende til gammalnorsk der slike har funnest i levande talemål.", 80],
|
| 86 |
+
["Ođđadárogiela vuođđun leat leamaš Norgga suopmanat, ja dasto das eai leat nu olu dánskkagiel sánit go girjedárogielas.", 80],
|
| 87 |
]
|
| 88 |
)
|
| 89 |
iface.launch()
|