Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -152,10 +152,15 @@ if submit:
|
|
152 |
try:
|
153 |
# Obtener la respuesta del modelo
|
154 |
generated_bullets = generate_bullets(number_of_bullets, target_audience, product, call_to_action, temperature)
|
|
|
|
|
|
|
|
|
|
|
155 |
col2.markdown(f"""
|
156 |
<div style="border: 1px solid #000000; padding: 5px; border-radius: 8px; background-color: #ffffff;">
|
157 |
<h4>Mira los bullets generados:</h4>
|
158 |
-
<p>{
|
159 |
</div>
|
160 |
""", unsafe_allow_html=True)
|
161 |
except Exception as e:
|
|
|
152 |
try:
|
153 |
# Obtener la respuesta del modelo
|
154 |
generated_bullets = generate_bullets(number_of_bullets, target_audience, product, call_to_action, temperature)
|
155 |
+
|
156 |
+
# Dividir los bullets en una lista y unirlos con saltos de línea
|
157 |
+
bullets_list = generated_bullets.split('\n')
|
158 |
+
formatted_bullets = '\n'.join([f'- {bullet}' for bullet in bullets_list if bullet]) # Añadir un guion para cada bullet
|
159 |
+
|
160 |
col2.markdown(f"""
|
161 |
<div style="border: 1px solid #000000; padding: 5px; border-radius: 8px; background-color: #ffffff;">
|
162 |
<h4>Mira los bullets generados:</h4>
|
163 |
+
<p>{formatted_bullets}</p>
|
164 |
</div>
|
165 |
""", unsafe_allow_html=True)
|
166 |
except Exception as e:
|