Spaces:
Sleeping
Sleeping
Commit
·
fa77354
1
Parent(s):
c519f9c
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,9 @@ def main():
|
|
48 |
# Display the generated text in a div with word wrap and auto-increasing height
|
49 |
#st.markdown(f"<div style='white-space: pre-wrap; overflow-y: auto;'>**Generated Text:**\n\n```\n{result}\n```</div>", unsafe_allow_html=True)
|
50 |
# Display the generated text in a div with word wrap and auto-increasing width and height
|
51 |
-
st.markdown(f"<div style='white-space: pre-wrap; width: 100%; overflow: auto;'>**Generated Text:**\n\n```\n{result}\n```</div>", unsafe_allow_html=True)
|
|
|
|
|
52 |
|
53 |
|
54 |
|
|
|
48 |
# Display the generated text in a div with word wrap and auto-increasing height
|
49 |
#st.markdown(f"<div style='white-space: pre-wrap; overflow-y: auto;'>**Generated Text:**\n\n```\n{result}\n```</div>", unsafe_allow_html=True)
|
50 |
# Display the generated text in a div with word wrap and auto-increasing width and height
|
51 |
+
#st.markdown(f"<div style='white-space: pre-wrap; width: 100%; overflow: auto;'>**Generated Text:**\n\n```\n{result}\n```</div>", unsafe_allow_html=True)
|
52 |
+
# Display the generated text in a text area with word wrap
|
53 |
+
st.text_area("Generated Text:", result, height=200, key="generated_text", disabled=True)
|
54 |
|
55 |
|
56 |
|