Update app.py
Browse files
app.py
CHANGED
@@ -36,13 +36,17 @@ language_options = ['Zulu', 'Tshivenda', 'Sepedi', 'Tswana', 'Tsonga']
|
|
36 |
with col1:
|
37 |
with st.container():
|
38 |
st.markdown("### Input :clipboard:")
|
|
|
|
|
39 |
|
40 |
input_sentences = {}
|
41 |
for i in range(5):
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
46 |
|
47 |
button1, button2, _ = st.columns([2, 2, 4])
|
48 |
with button1:
|
@@ -67,13 +71,13 @@ with col1:
|
|
67 |
st.warning(warning)
|
68 |
|
69 |
st.markdown("### Example")
|
70 |
-
st.code(
|
71 |
'zulu': "Le ndoda ithi izo <mask> ukudla.",
|
72 |
'tshivenda': "Mufana uyo <mask> vhukuma.",
|
73 |
'sepedi': "Mosadi o <mask> pheka.",
|
74 |
'tswana': "Monna o <mask> tsamaya.",
|
75 |
'tsonga': "N'wana wa xisati u <mask> ku tsaka."
|
76 |
-
|
77 |
|
78 |
with col2:
|
79 |
with st.container():
|
|
|
36 |
with col1:
|
37 |
with st.container():
|
38 |
st.markdown("### Input :clipboard:")
|
39 |
+
|
40 |
+
input1, input2 = st.columns(2)
|
41 |
|
42 |
input_sentences = {}
|
43 |
for i in range(5):
|
44 |
+
with input1:
|
45 |
+
language = st.selectbox(f"Select language for sentence {i+1}:", language_options, key=f'language_{i}')
|
46 |
+
with input2:
|
47 |
+
sentence = st.text_input(f"Enter sentence for {language} (with <mask>):", key=f'text_input_{i}')
|
48 |
+
if sentence:
|
49 |
+
input_sentences[language.lower()] = sentence
|
50 |
|
51 |
button1, button2, _ = st.columns([2, 2, 4])
|
52 |
with button1:
|
|
|
71 |
st.warning(warning)
|
72 |
|
73 |
st.markdown("### Example")
|
74 |
+
st.code(
|
75 |
'zulu': "Le ndoda ithi izo <mask> ukudla.",
|
76 |
'tshivenda': "Mufana uyo <mask> vhukuma.",
|
77 |
'sepedi': "Mosadi o <mask> pheka.",
|
78 |
'tswana': "Monna o <mask> tsamaya.",
|
79 |
'tsonga': "N'wana wa xisati u <mask> ku tsaka."
|
80 |
+
, wrap_lines=True)
|
81 |
|
82 |
with col2:
|
83 |
with st.container():
|