Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import langcodes
|
|
4 |
# https://huggingface.co/blog/streamlit-spaces
|
5 |
langtext = st.text_input("language code", "en")
|
6 |
|
7 |
-
if langcodes.tag_is_valid():
|
8 |
st.write(f"{langtext} is already a valid BCP-47 language tag")
|
9 |
else:
|
10 |
st.write(f"{langtext} is not already a valid BCP-47 language tag")
|
|
|
4 |
# https://huggingface.co/blog/streamlit-spaces
|
5 |
langtext = st.text_input("language code", "en")
|
6 |
|
7 |
+
if langcodes.tag_is_valid(langtext):
|
8 |
st.write(f"{langtext} is already a valid BCP-47 language tag")
|
9 |
else:
|
10 |
st.write(f"{langtext} is not already a valid BCP-47 language tag")
|