kasper-boy
commited on
Commit
•
707432b
1
Parent(s):
4ef850b
Update app.py
Browse files
app.py
CHANGED
@@ -55,6 +55,11 @@ st.markdown("""
|
|
55 |
font-family: 'Courier New', monospace;
|
56 |
color: #333333;
|
57 |
background-color: #ffffff;
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
</style>
|
60 |
""", unsafe_allow_html=True)
|
@@ -77,7 +82,7 @@ if st.sidebar.button("Translate", key="translate_button"):
|
|
77 |
if text_to_translate:
|
78 |
translated_text = translate_text(text_to_translate, destination_language)
|
79 |
st.markdown("### Translated text")
|
80 |
-
st.
|
81 |
else:
|
82 |
st.warning("Please enter text to translate")
|
83 |
|
|
|
55 |
font-family: 'Courier New', monospace;
|
56 |
color: #333333;
|
57 |
background-color: #ffffff;
|
58 |
+
padding: 10px;
|
59 |
+
border: 1px solid #ccc;
|
60 |
+
border-radius: 5px;
|
61 |
+
width: 100%;
|
62 |
+
height: 150px;
|
63 |
}
|
64 |
</style>
|
65 |
""", unsafe_allow_html=True)
|
|
|
82 |
if text_to_translate:
|
83 |
translated_text = translate_text(text_to_translate, destination_language)
|
84 |
st.markdown("### Translated text")
|
85 |
+
st.markdown(f'<div class="textbox">{translated_text}</div>', unsafe_allow_html=True)
|
86 |
else:
|
87 |
st.warning("Please enter text to translate")
|
88 |
|