Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
import langcodes
|
3 |
|
4 |
# https://huggingface.co/blog/streamlit-spaces
|
5 |
-
langtext = st.text_input("language lookup", "en")
|
6 |
|
7 |
if langcodes.tag_is_valid(langtext):
|
8 |
st.write(f"{langtext} is already a valid BCP-47 language tag")
|
|
|
2 |
import langcodes
|
3 |
|
4 |
# https://huggingface.co/blog/streamlit-spaces
|
5 |
+
langtext = st.text_input("language lookup using https://github.com/rspeer/langcodes", "en")
|
6 |
|
7 |
if langcodes.tag_is_valid(langtext):
|
8 |
st.write(f"{langtext} is already a valid BCP-47 language tag")
|