Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,9 +125,13 @@ if submit: # Verifica si se hizo clic en el bot贸n de env铆o
|
|
| 125 |
try:
|
| 126 |
# Obtener la respuesta del modelo
|
| 127 |
generated_text = get_gemini_response(target_audience, product, text_type, length, mood, emotionality)
|
| 128 |
-
col2.
|
| 129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
except ValueError as e:
|
| 131 |
col2.error(f"Error: {str(e)}")
|
| 132 |
else:
|
| 133 |
-
col2.error("Por favor, proporciona el p煤blico objetivo y el producto.")
|
|
|
|
| 125 |
try:
|
| 126 |
# Obtener la respuesta del modelo
|
| 127 |
generated_text = get_gemini_response(target_audience, product, text_type, length, mood, emotionality)
|
| 128 |
+
col2.markdown("""
|
| 129 |
+
<div style="border: 2px solid #FFCC00; padding: 10px; border-radius: 8px; background-color: #f9f9f9;">
|
| 130 |
+
<h3>Contenido generado:</h3>
|
| 131 |
+
<p>{}</p>
|
| 132 |
+
</div>
|
| 133 |
+
""".format(generated_text), unsafe_allow_html=True) # Resultado del texto generado
|
| 134 |
except ValueError as e:
|
| 135 |
col2.error(f"Error: {str(e)}")
|
| 136 |
else:
|
| 137 |
+
col2.error("Por favor, proporciona el p煤blico objetivo y el producto.")
|