Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -102,9 +102,6 @@ st.markdown("""
|
|
102 |
</style>
|
103 |
""", unsafe_allow_html=True)
|
104 |
|
105 |
-
# Initialize a variable for generated text
|
106 |
-
generated_text = "El texto solicitado aparecerá aquí."
|
107 |
-
|
108 |
# Create two columns for the layout (40% and 60%)
|
109 |
col1, col2 = st.columns([2, 3]) # 2 + 3 = 5 parts in total
|
110 |
|
@@ -123,14 +120,6 @@ with col1:
|
|
123 |
# Submit button
|
124 |
submit = st.button("Escribir mi Texto")
|
125 |
|
126 |
-
# Display the result area with a border (always visible)
|
127 |
-
col2.markdown("""
|
128 |
-
<div style="border: 2px solid #FFCC00; padding: 10px; border-radius: 8px; background-color: #f9f9f9;">
|
129 |
-
<h3>Aquí está tu párrafo de apertura:</h3>
|
130 |
-
<p>{}</p>
|
131 |
-
</div>
|
132 |
-
""".format(generated_text), unsafe_allow_html=True)
|
133 |
-
|
134 |
# Button to generate text (outside the accordion)
|
135 |
if submit:
|
136 |
if target_audience and product: # Check if target audience and product are provided
|
|
|
102 |
</style>
|
103 |
""", unsafe_allow_html=True)
|
104 |
|
|
|
|
|
|
|
105 |
# Create two columns for the layout (40% and 60%)
|
106 |
col1, col2 = st.columns([2, 3]) # 2 + 3 = 5 parts in total
|
107 |
|
|
|
120 |
# Submit button
|
121 |
submit = st.button("Escribir mi Texto")
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
# Button to generate text (outside the accordion)
|
124 |
if submit:
|
125 |
if target_audience and product: # Check if target audience and product are provided
|