Spaces:
Runtime error
Runtime error
kaushikbar
commited on
Commit
·
b2dc915
1
Parent(s):
f1a2cd3
Multiple language support added.
Browse files
app.py
CHANGED
|
@@ -79,6 +79,7 @@ example_text1 = "Coronavirus disease (COVID-19) is an infectious disease caused
|
|
| 79 |
people who fall sick with COVID-19 will experience mild to moderate symptoms and recover without special treatment. \
|
| 80 |
However, some will become seriously ill and require medical attention."
|
| 81 |
example_labels1="business,health related,politics"
|
|
|
|
| 82 |
example_text2="Ja, vi elsker dette landet,\
|
| 83 |
som det stiger frem,\
|
| 84 |
furet, værbitt over vannet,\
|
|
@@ -87,6 +88,9 @@ Og som fedres kamp har hevet\
|
|
| 87 |
det av nød til seir"
|
| 88 |
example_labels2="helse,sport,religion,mat,patriotisme og nasjonalisme"
|
| 89 |
|
|
|
|
|
|
|
|
|
|
| 90 |
iface = gr.Interface(
|
| 91 |
title="Multilingual Multi-label Zero-shot Classification",
|
| 92 |
description="Currently supported languages are English, German, Spanish, Italian, Russian, Norsk.",
|
|
@@ -102,6 +106,6 @@ iface = gr.Interface(
|
|
| 102 |
#interpretation="default",
|
| 103 |
examples=[
|
| 104 |
[example_text1, example_labels1],
|
| 105 |
-
[example_text2, example_labels2]
|
| 106 |
-
|
| 107 |
iface.launch()
|
|
|
|
| 79 |
people who fall sick with COVID-19 will experience mild to moderate symptoms and recover without special treatment. \
|
| 80 |
However, some will become seriously ill and require medical attention."
|
| 81 |
example_labels1="business,health related,politics"
|
| 82 |
+
|
| 83 |
example_text2="Ja, vi elsker dette landet,\
|
| 84 |
som det stiger frem,\
|
| 85 |
furet, værbitt over vannet,\
|
|
|
|
| 88 |
det av nød til seir"
|
| 89 |
example_labels2="helse,sport,religion,mat,patriotisme og nasjonalisme"
|
| 90 |
|
| 91 |
+
example_text3="Elephants are"
|
| 92 |
+
example_labels3="big,small,strong"
|
| 93 |
+
|
| 94 |
iface = gr.Interface(
|
| 95 |
title="Multilingual Multi-label Zero-shot Classification",
|
| 96 |
description="Currently supported languages are English, German, Spanish, Italian, Russian, Norsk.",
|
|
|
|
| 106 |
#interpretation="default",
|
| 107 |
examples=[
|
| 108 |
[example_text1, example_labels1],
|
| 109 |
+
[example_text2, example_labels2],
|
| 110 |
+
[example_text3, example_labels3]])
|
| 111 |
iface.launch()
|