cdleong commited on
Commit
f580975
1 Parent(s): 507c0d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,7 +8,8 @@ st.write("Try typing your language below! Accepts either codes like `eng`/`en`,
8
  # https://huggingface.co/blog/streamlit-spaces
9
  # https://github.com/psf/requests-html
10
  # https://docs.streamlit.io/library/api-reference/write-magic/st.write
11
- langtext = st.text_input("Language Code/Tag Lookup using langcodes", "english", help="Try language codes or language names!").strip()
 
12
 
13
  st.write("* Checking whether the tag is valid. That is, the language, script, territory, and variants (if present) are all tags that have meanings assigned by IANA.")
14
 
 
8
  # https://huggingface.co/blog/streamlit-spaces
9
  # https://github.com/psf/requests-html
10
  # https://docs.streamlit.io/library/api-reference/write-magic/st.write
11
+ example_valid_lookups = ["zh-CN", "Chinese", "zh-Latn-pinyin", "en-Latn-US", "en", "English", "Saami", "fr-CA", "French (Canada)", "français", "英语"]
12
+ langtext = st.text_input("Language Code/Tag Lookup using langcodes", "english", help=f"Try language codes or language names! Examples: {example_valid_lookups}").strip()
13
 
14
  st.write("* Checking whether the tag is valid. That is, the language, script, territory, and variants (if present) are all tags that have meanings assigned by IANA.")
15