langcode-search / app.py
cdleong's picture
Update app.py
34ca170
raw
history blame
292 Bytes
import streamlit as st
import langcodes
# https://huggingface.co/blog/streamlit-spaces
langtext = st.text_area("language code", "en")
found = langcodes.find(langtext)
display = found.display_name()
st.write(f"langcodes found the following tag: {found}")
st.write(f"Display name: {display}")