Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
| 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 |
|