Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,6 +31,7 @@ if lang is None:
|
|
31 |
st.write(f"natural language search found the following BCP-47 tag: {lang}")
|
32 |
except LookupError as e:
|
33 |
st.write(f"Unable to look up language code.")
|
|
|
34 |
lang = None
|
35 |
|
36 |
|
@@ -51,5 +52,5 @@ if lang is not None:
|
|
51 |
broader_tags = lang.broader_tags()
|
52 |
st.write(f"Broader tags for this language, if any: {broader_tags}")
|
53 |
st.write(f"Correct, standardized, BCP-47 tag for {langtext}, according to the langcodes library: {langcodes.standardize_tag(lang)}")
|
54 |
-
st.write(f"Try also: https://r12a.github.io/app-subtags/?
|
55 |
|
|
|
31 |
st.write(f"natural language search found the following BCP-47 tag: {lang}")
|
32 |
except LookupError as e:
|
33 |
st.write(f"Unable to look up language code.")
|
34 |
+
st.write(f"Try also: https://r12a.github.io/app-subtags/")
|
35 |
lang = None
|
36 |
|
37 |
|
|
|
52 |
broader_tags = lang.broader_tags()
|
53 |
st.write(f"Broader tags for this language, if any: {broader_tags}")
|
54 |
st.write(f"Correct, standardized, BCP-47 tag for {langtext}, according to the langcodes library: {langcodes.standardize_tag(lang)}")
|
55 |
+
st.write(f"Try also: https://r12a.github.io/app-subtags/?lookup={lang}")
|
56 |
|