langcode-search / app.py
cdleong's picture
Update app.py
b038dc3
raw
history blame
274 Bytes
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()}")