JeCabrera commited on
Commit
c60d8f3
·
verified ·
1 Parent(s): 24bbc32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -155,7 +155,7 @@ if submit:
155
 
156
  # Formatear la salida usando etiquetas <br> para saltos de línea
157
  bullets_list = generated_bullets.split('\n')
158
- formatted_bullets = '<br style="line-height: 1.5;">'.join([bullet for bullet in bullets_list if bullet]) # Agregar interlineado
159
 
160
  col2.markdown(f"""
161
  <div style="border: 1px solid #000000; padding: 5px; border-radius: 8px; background-color: #ffffff;">
@@ -164,6 +164,6 @@ if submit:
164
  </div>
165
  """, unsafe_allow_html=True)
166
  except Exception as e:
167
- st.error(f"Error al generar los bullets: {str(e)}")
168
  else:
169
- st.error("Por favor, completa todos los campos.")
 
155
 
156
  # Formatear la salida usando etiquetas <br> para saltos de línea
157
  bullets_list = generated_bullets.split('\n')
158
+ formatted_bullets = '<br style="line-height: 2;">'.join([bullet for bullet in bullets_list if bullet]) # Agregar interlineado
159
 
160
  col2.markdown(f"""
161
  <div style="border: 1px solid #000000; padding: 5px; border-radius: 8px; background-color: #ffffff;">
 
164
  </div>
165
  """, unsafe_allow_html=True)
166
  except Exception as e:
167
+ col2.error(f"Error al generar los bullets: {str(e)}") # Cambiar a mostrar el error en col2
168
  else:
169
+ col2.error("Por favor, completa todos los campos.") # Cambiar a mostrar el error en col2