Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,6 @@ else:
|
|
17 |
try:
|
18 |
found = langcodes.find(langtext)
|
19 |
lang = found
|
20 |
-
st.write(f"langcodes found the following tag: {found}")
|
21 |
except LookupError as e:
|
22 |
st.write(f"Couldn't look up langtext, sorry: {e}")
|
23 |
lang = None
|
@@ -25,4 +24,6 @@ else:
|
|
25 |
|
26 |
#st.write(f"langcodes found the following tag: {type(found)}") # a Language object
|
27 |
display = lang.display_name()
|
|
|
|
|
28 |
st.write(f"Display name for {lang}: {display}")
|
|
|
17 |
try:
|
18 |
found = langcodes.find(langtext)
|
19 |
lang = found
|
|
|
20 |
except LookupError as e:
|
21 |
st.write(f"Couldn't look up langtext, sorry: {e}")
|
22 |
lang = None
|
|
|
24 |
|
25 |
#st.write(f"langcodes found the following tag: {type(found)}") # a Language object
|
26 |
display = lang.display_name()
|
27 |
+
|
28 |
+
st.write(f"langcodes found the following tag: {lang}")
|
29 |
st.write(f"Display name for {lang}: {display}")
|