Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -123,10 +123,10 @@ with col1:
|
|
123 |
# Submit button
|
124 |
submit = st.button("Escribir mi Texto")
|
125 |
|
126 |
-
# Display the result area with a border
|
127 |
col2.markdown("""
|
128 |
<div style="border: 2px solid #FFCC00; padding: 10px; border-radius: 8px; background-color: #f9f9f9;">
|
129 |
-
<h3>Aquí
|
130 |
<p>{}</p>
|
131 |
</div>
|
132 |
""".format(generated_text), unsafe_allow_html=True)
|
@@ -139,11 +139,11 @@ if submit:
|
|
139 |
generated_text = get_gemini_response(target_audience, product, text_type, length, mood, emotionality)
|
140 |
col2.markdown("""
|
141 |
<div style="border: 2px solid #FFCC00; padding: 10px; border-radius: 8px; background-color: #f9f9f9;">
|
142 |
-
<h3>Aquí
|
143 |
<p>{}</p>
|
144 |
</div>
|
145 |
""".format(generated_text), unsafe_allow_html=True) # Update with generated text
|
146 |
except ValueError as e:
|
147 |
col2.error(f"Error: {str(e)}")
|
148 |
else:
|
149 |
-
col2.error("Por favor, proporciona el público objetivo y el producto.")
|
|
|
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)
|
|
|
139 |
generated_text = get_gemini_response(target_audience, product, text_type, length, mood, emotionality)
|
140 |
col2.markdown("""
|
141 |
<div style="border: 2px solid #FFCC00; padding: 10px; border-radius: 8px; background-color: #f9f9f9;">
|
142 |
+
<h3>Aquí está tu párrafo de apertura:</h3>
|
143 |
<p>{}</p>
|
144 |
</div>
|
145 |
""".format(generated_text), unsafe_allow_html=True) # Update with generated text
|
146 |
except ValueError as e:
|
147 |
col2.error(f"Error: {str(e)}")
|
148 |
else:
|
149 |
+
col2.error("Por favor, proporciona el público objetivo y el producto.")
|