Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ def generate_bullets(number_of_bullets, target_audience, product, call_to_action
|
|
| 91 |
)
|
| 92 |
|
| 93 |
# Mostrar los beneficios generados con formato correcto en HTML
|
| 94 |
-
if submit:
|
| 95 |
if target_audience and product and call_to_action:
|
| 96 |
try:
|
| 97 |
# Obtener la respuesta del modelo
|
|
@@ -186,4 +186,4 @@ if submit:
|
|
| 186 |
except Exception as e:
|
| 187 |
st.error(f"Error al generar los bullets: {str(e)}")
|
| 188 |
else:
|
| 189 |
-
st.error("Por favor, completa todos los campos.")
|
|
|
|
| 91 |
)
|
| 92 |
|
| 93 |
# Mostrar los beneficios generados con formato correcto en HTML
|
| 94 |
+
if "submit" in locals() and submit:
|
| 95 |
if target_audience and product and call_to_action:
|
| 96 |
try:
|
| 97 |
# Obtener la respuesta del modelo
|
|
|
|
| 186 |
except Exception as e:
|
| 187 |
st.error(f"Error al generar los bullets: {str(e)}")
|
| 188 |
else:
|
| 189 |
+
st.error("Por favor, completa todos los campos.")
|