Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def get_gemini_response_bullets(target_audience, product, num_bullets, temperatu
|
|
| 74 |
)
|
| 75 |
)
|
| 76 |
|
| 77 |
-
# Crear
|
| 78 |
chat_session = model.start_chat(
|
| 79 |
history=[
|
| 80 |
{
|
|
@@ -153,11 +153,11 @@ if submit:
|
|
| 153 |
generated_bullets = get_gemini_response_bullets(target_audience, product, num_bullets, temperature)
|
| 154 |
col2.markdown(f"""
|
| 155 |
<div style="border: 1px solid #000000; padding: 5px; border-radius: 8px; background-color: #ffffff;">
|
| 156 |
-
<h4>
|
| 157 |
-
<
|
| 158 |
</div>
|
| 159 |
""", unsafe_allow_html=True)
|
| 160 |
except ValueError as e:
|
| 161 |
-
st.error(e)
|
| 162 |
else:
|
| 163 |
st.error("Por favor, completa todos los campos.")
|
|
|
|
| 74 |
)
|
| 75 |
)
|
| 76 |
|
| 77 |
+
# Crear la instrucci贸n para generar bullets
|
| 78 |
chat_session = model.start_chat(
|
| 79 |
history=[
|
| 80 |
{
|
|
|
|
| 153 |
generated_bullets = get_gemini_response_bullets(target_audience, product, num_bullets, temperature)
|
| 154 |
col2.markdown(f"""
|
| 155 |
<div style="border: 1px solid #000000; padding: 5px; border-radius: 8px; background-color: #ffffff;">
|
| 156 |
+
<h4 style='text-align: center;'>Aqu铆 est谩n tus Bullets:</h4>
|
| 157 |
+
<pre style="white-space: pre-wrap;">{generated_bullets}</pre>
|
| 158 |
</div>
|
| 159 |
""", unsafe_allow_html=True)
|
| 160 |
except ValueError as e:
|
| 161 |
+
st.error(str(e))
|
| 162 |
else:
|
| 163 |
st.error("Por favor, completa todos los campos.")
|