cdleong commited on
Commit
2ffcbe6
1 Parent(s): 8f05d7c

add original string to dropdown

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -9,7 +9,7 @@ from collections import defaultdict
9
 
10
 
11
  @st.cache
12
- def get_lang_description_from_mapping_name(string_to_check, add_iso_url=False):
13
  description = None
14
  if "generic-Latn" == string_to_check:
15
  return "Generic Latin Script text"
@@ -39,7 +39,8 @@ def get_lang_description_from_mapping_name(string_to_check, add_iso_url=False):
39
  if key in string_to_check:
40
  description = description + note
41
 
42
-
 
43
  return description
44
 
45
 
 
9
 
10
 
11
  @st.cache
12
+ def get_lang_description_from_mapping_name(string_to_check, add_original_code= True, add_iso_url=False):
13
  description = None
14
  if "generic-Latn" == string_to_check:
15
  return "Generic Latin Script text"
 
39
  if key in string_to_check:
40
  description = description + note
41
 
42
+ if add_original_code:
43
+ description = f"Epitran mapping: {string_to_check}, "
44
  return description
45
 
46