Spaces:
Running
Running
theo
commited on
Commit
•
2f4f38e
1
Parent(s):
3f72eac
better handle empty state
Browse files- tagging_app.py +1 -1
tagging_app.py
CHANGED
@@ -263,7 +263,7 @@ langtags = leftcol.text_area(
|
|
263 |
"What languages are represented in the dataset? expected format is BCP47 tags separated for ';' e.g. 'en-US;fr-FR'",
|
264 |
value=";".join(valid_values),
|
265 |
)
|
266 |
-
state["languages"] = langtags.split(";")
|
267 |
|
268 |
|
269 |
#
|
|
|
263 |
"What languages are represented in the dataset? expected format is BCP47 tags separated for ';' e.g. 'en-US;fr-FR'",
|
264 |
value=";".join(valid_values),
|
265 |
)
|
266 |
+
state["languages"] = langtags.strip().split(";") if langtags.strip() != "" else []
|
267 |
|
268 |
|
269 |
#
|