Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ langtext = st.text_input("language lookup using https://github.com/rspeer/langco
|
|
7 |
st.write("Checking whether the tag is valid. That is, the language, script, territory, and variants (if present) are all tags that have meanings assigned by IANA.")
|
8 |
|
9 |
if langcodes.tag_is_valid(langtext):
|
10 |
-
st.write(f"{langtext} parses meaningfully as a language tag according to IANA.")
|
11 |
else:
|
12 |
-
st.write(f"{langtext} doesn't parse meaningfully as a language tag according to IANA, some of its subcomponents may be invalid or it might be a natural language description.")
|
13 |
|
14 |
|
15 |
try:
|
|
|
7 |
st.write("Checking whether the tag is valid. That is, the language, script, territory, and variants (if present) are all tags that have meanings assigned by IANA.")
|
8 |
|
9 |
if langcodes.tag_is_valid(langtext):
|
10 |
+
st.write(f"...True! {langtext} parses meaningfully as a language tag according to IANA.")
|
11 |
else:
|
12 |
+
st.write(f"...False! {langtext} doesn't parse meaningfully as a language tag according to IANA, some of its subcomponents may be invalid or it might be a natural language description.")
|
13 |
|
14 |
|
15 |
try:
|