Spaces:
Runtime error
Runtime error
File size: 274 Bytes
68a8c29 6570b48 68a8c29 5a1315d e4090f9 b038dc3 |
1 2 3 4 5 6 7 8 9 |
import streamlit as st
import langcodes
# https://huggingface.co/blog/streamlit-spaces
langtext = st.text_area("language code", "en")
found = langcodes.find(langtext)
st.write(f"langcodes found the following tag: {found}")
st.write(f"Display name: {found.display_name()}")
|