cdleong commited on
Commit
145304e
1 Parent(s): 2bd2657

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,8 @@
1
  import streamlit as st
2
  import epitran
3
 
 
 
4
  if __name__ == "__main__":
5
  iso_lang_code = st.text_input(
6
  label="Three-letter ISO-639-3 (https://iso639-3.sil.org/) language code",
@@ -21,7 +23,7 @@ if __name__ == "__main__":
21
  st.info("attempting to instantiate epitran transliterator for your language/script")
22
  epi = epitran.Epitran(combined_code)
23
 
24
- st.info(f"transliterating `{input_text}` using {epi}...")
25
  transliteration = epi.transliterate(input_text)
26
 
27
  st.success(transliteration)
 
1
  import streamlit as st
2
  import epitran
3
 
4
+ # TODO: reverse transliterate?
5
+
6
  if __name__ == "__main__":
7
  iso_lang_code = st.text_input(
8
  label="Three-letter ISO-639-3 (https://iso639-3.sil.org/) language code",
 
23
  st.info("attempting to instantiate epitran transliterator for your language/script")
24
  epi = epitran.Epitran(combined_code)
25
 
26
+ st.info(f"transliterating `{input_text}`\n\tusing {epi}...")
27
  transliteration = epi.transliterate(input_text)
28
 
29
  st.success(transliteration)