frontend changes
Browse files
app.py
CHANGED
@@ -40,15 +40,15 @@ col1, col2 = st.columns(2)
|
|
40 |
|
41 |
with col1:
|
42 |
if "current_text" in st.session_state:
|
43 |
-
hinglish_text = st.text_area("
|
44 |
else:
|
45 |
-
hinglish_text = st.text_area("
|
46 |
|
47 |
with col2:
|
48 |
if "translated_text" in st.session_state:
|
49 |
-
st.text_area("English", value=st.session_state["translated_text"], height=300, key="")
|
50 |
else:
|
51 |
-
st.text_area("English", height=300, key="")
|
52 |
|
53 |
if st.button("Translate", use_container_width=True, type="primary"):
|
54 |
if hinglish_text != "":
|
|
|
40 |
|
41 |
with col1:
|
42 |
if "current_text" in st.session_state:
|
43 |
+
hinglish_text = st.text_area("Hinglish", value=st.session_state["current_text"], height=300, key="x", placeholder="something like: aapka naam kya hai?")
|
44 |
else:
|
45 |
+
hinglish_text = st.text_area("Hinglish", height=300, key="x", placeholder="something like: aapka naam kya hai?")
|
46 |
|
47 |
with col2:
|
48 |
if "translated_text" in st.session_state:
|
49 |
+
st.text_area("English", value=st.session_state["translated_text"], height=300, key="", placeholder="Translation will appear here.")
|
50 |
else:
|
51 |
+
st.text_area("English", height=300, key="", placeholder="Translation will appear here.")
|
52 |
|
53 |
if st.button("Translate", use_container_width=True, type="primary"):
|
54 |
if hinglish_text != "":
|