Spaces:
Runtime error
Runtime error
kaushikbar
commited on
Commit
·
aa955f2
1
Parent(s):
b2dc915
Multiple language support added.
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def sequence_to_classify(sequence, labels):
|
|
78 |
example_text1 = "Coronavirus disease (COVID-19) is an infectious disease caused by the SARS-CoV-2 virus. Most \
|
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,\
|
@@ -91,6 +91,9 @@ example_labels2="helse,sport,religion,mat,patriotisme og nasjonalisme"
|
|
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.",
|
|
|
78 |
example_text1 = "Coronavirus disease (COVID-19) is an infectious disease caused by the SARS-CoV-2 virus. Most \
|
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,climate change"
|
82 |
|
83 |
example_text2="Ja, vi elsker dette landet,\
|
84 |
som det stiger frem,\
|
|
|
91 |
example_text3="Elephants are"
|
92 |
example_labels3="big,small,strong"
|
93 |
|
94 |
+
example_text3="Dogs are man's best friend"
|
95 |
+
example_labels3="positive,negative,neutral"
|
96 |
+
|
97 |
iface = gr.Interface(
|
98 |
title="Multilingual Multi-label Zero-shot Classification",
|
99 |
description="Currently supported languages are English, German, Spanish, Italian, Russian, Norsk.",
|