Upload app.py
Browse files
app.py
CHANGED
@@ -230,18 +230,8 @@ def main():
|
|
230 |
|
231 |
if translation:
|
232 |
st.markdown(f"**Samaritan Aramaic:**")
|
233 |
-
|
234 |
-
|
235 |
-
# Copy button
|
236 |
-
st.markdown(f"""
|
237 |
-
<div style="margin-top: 1rem;">
|
238 |
-
<button onclick="navigator.clipboard.writeText('{translation.replace("'", "\\'")}')"
|
239 |
-
style="background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
|
240 |
-
color: white; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer;">
|
241 |
-
📋 Copy Translation
|
242 |
-
</button>
|
243 |
-
</div>
|
244 |
-
""", unsafe_allow_html=True)
|
245 |
else:
|
246 |
st.error("Translation failed. Please try again.")
|
247 |
else:
|
|
|
230 |
|
231 |
if translation:
|
232 |
st.markdown(f"**Samaritan Aramaic:**")
|
233 |
+
# Display translation in a code block that can be easily copied
|
234 |
+
st.code(translation, language=None)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
else:
|
236 |
st.error("Translation failed. Please try again.")
|
237 |
else:
|