Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,5 +4,6 @@ import langcodes
|
|
4 |
# https://huggingface.co/blog/streamlit-spaces
|
5 |
langtext = st.text_area("language code", "en")
|
6 |
found = langcodes.find(langtext)
|
|
|
7 |
st.write(f"langcodes found the following tag: {found}")
|
8 |
-
st.write(f"Display name: {
|
|
|
4 |
# https://huggingface.co/blog/streamlit-spaces
|
5 |
langtext = st.text_area("language code", "en")
|
6 |
found = langcodes.find(langtext)
|
7 |
+
display = found.display_name()
|
8 |
st.write(f"langcodes found the following tag: {found}")
|
9 |
+
st.write(f"Display name: {display}")
|