cdleong commited on
Commit
cde8835
1 Parent(s): bdc5613

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,10 +16,10 @@ try:
16
  lang = langcodes.Language.get(langtext)
17
  # st.write(f"{lang} is the BCP-47 tag.")
18
  if "unknown" in lang.display_name().lower():
19
- st.write(f"Attempting to use the code directly gives us {lang.display_name()}")
20
  lang = None
21
  except langcodes.LanguageTagError as e:
22
- st.write(f"Could not simply instantiate, trying to look up instead.")
23
  lang = None
24
 
25
 
16
  lang = langcodes.Language.get(langtext)
17
  # st.write(f"{lang} is the BCP-47 tag.")
18
  if "unknown" in lang.display_name().lower():
19
+ st.write(f"Attempting to lookup the code directly gives us '{lang.display_name()}', attempting to search for it as a natural language string.")
20
  lang = None
21
  except langcodes.LanguageTagError as e:
22
+ st.write(f"Could not lookup code directly, attempting to search for it as a natural language string.")
23
  lang = None
24
 
25