imomayiz commited on
Commit
b6e02e5
1 Parent(s): 53c86f7

removed transliteration

Browse files
Files changed (1) hide show
  1. app.py +25 -24
app.py CHANGED
@@ -46,33 +46,34 @@ if __name__ == "__main__":
46
 
47
  st.divider()
48
 
49
- with st.container() as c:
50
- # add a block where users can input text and get a translation
51
- st.markdown(
52
- """
53
- <div style='text-align: center;'>
54
- <h3>🔠Keyboard: Transliterate Letters from Latin to Arabic</h3
55
- >
56
- </div>
57
- """,
58
- unsafe_allow_html=True,
59
- )
60
 
61
- col1, col2 = st.columns(2)
62
 
63
- with col1:
64
- input_text = st.text_area(":grey[Enter a word/letter in English ⬇]", "")
65
- button = st.button("Transliterate")
66
- with col2:
67
- if button:
68
- with st.spinner('Transliterating...'):
69
- translation = transliterate(input_text)
70
- st.text_area(
71
- ":grey[Transliteration]",
72
- translation,
73
- )
74
 
75
- st.divider()
 
76
  with st.container() as c:
77
  # add a block where users can input text and get a translation
78
  st.markdown(
 
46
 
47
  st.divider()
48
 
49
+ # with st.container() as c:
50
+ # # add a block where users can input text and get a translation
51
+ # st.markdown(
52
+ # """
53
+ # <div style='text-align: center;'>
54
+ # <h3>🔠Keyboard: Transliterate Letters from Latin to Arabic</h3
55
+ # >
56
+ # </div>
57
+ # """,
58
+ # unsafe_allow_html=True,
59
+ # )
60
 
61
+ # col1, col2 = st.columns(2)
62
 
63
+ # with col1:
64
+ # input_text = st.text_area(":grey[Enter a word/letter in English ⬇]", "")
65
+ # button = st.button("Transliterate")
66
+ # with col2:
67
+ # if button:
68
+ # with st.spinner('Transliterating...'):
69
+ # translation = transliterate(input_text)
70
+ # st.text_area(
71
+ # ":grey[Transliteration]",
72
+ # translation,
73
+ # )
74
 
75
+ # st.divider()
76
+
77
  with st.container() as c:
78
  # add a block where users can input text and get a translation
79
  st.markdown(