Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,11 +106,11 @@ def generate_bullets(number_of_bullets, target_audience, product, call_to_action
|
|
106 |
# Configurar la interfaz de usuario con Streamlit
|
107 |
st.set_page_config(page_title="Quick Prompt", layout="wide")
|
108 |
|
109 |
-
#
|
110 |
st.markdown("<h1 style='text-align: center;'>Impact Bullet Generator</h1>", unsafe_allow_html=True)
|
111 |
st.markdown("<h4 style='text-align: center;'>Transforma los pensamientos de tu audiencia en balas persuasivas que inspiren a la acci贸n.</h4>", unsafe_allow_html=True)
|
112 |
|
113 |
-
# A帽adir CSS personalizado para el bot贸n
|
114 |
st.markdown("""
|
115 |
<style>
|
116 |
div.stButton > button {
|
@@ -130,6 +130,21 @@ st.markdown("""
|
|
130 |
background-color: #FFD700;
|
131 |
color: black;
|
132 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
</style>
|
134 |
""", unsafe_allow_html=True)
|
135 |
|
@@ -154,9 +169,9 @@ if submit:
|
|
154 |
# Obtener la respuesta del modelo
|
155 |
generated_bullets = generate_bullets(number_of_bullets, target_audience, product, call_to_action, temperature)
|
156 |
col2.markdown(f"""
|
157 |
-
<div
|
158 |
<h4>Mira los bullets generados:</h4>
|
159 |
-
<p
|
160 |
</div>
|
161 |
""", unsafe_allow_html=True)
|
162 |
except Exception as e:
|
|
|
106 |
# Configurar la interfaz de usuario con Streamlit
|
107 |
st.set_page_config(page_title="Quick Prompt", layout="wide")
|
108 |
|
109 |
+
# A帽adir t铆tulo y subt铆tulo usando HTML y aplicando estilo directamente
|
110 |
st.markdown("<h1 style='text-align: center;'>Impact Bullet Generator</h1>", unsafe_allow_html=True)
|
111 |
st.markdown("<h4 style='text-align: center;'>Transforma los pensamientos de tu audiencia en balas persuasivas que inspiren a la acci贸n.</h4>", unsafe_allow_html=True)
|
112 |
|
113 |
+
# A帽adir CSS personalizado para el bot贸n y estilo general
|
114 |
st.markdown("""
|
115 |
<style>
|
116 |
div.stButton > button {
|
|
|
130 |
background-color: #FFD700;
|
131 |
color: black;
|
132 |
}
|
133 |
+
.generated-bullets {
|
134 |
+
border: 1px solid #000000;
|
135 |
+
padding: 10px;
|
136 |
+
border-radius: 8px;
|
137 |
+
background-color: #f9f9f9;
|
138 |
+
margin-top: 20px;
|
139 |
+
}
|
140 |
+
.generated-bullets h4 {
|
141 |
+
margin-bottom: 10px;
|
142 |
+
font-weight: bold;
|
143 |
+
}
|
144 |
+
.generated-bullets p {
|
145 |
+
margin: 0;
|
146 |
+
font-size: 16px;
|
147 |
+
}
|
148 |
</style>
|
149 |
""", unsafe_allow_html=True)
|
150 |
|
|
|
169 |
# Obtener la respuesta del modelo
|
170 |
generated_bullets = generate_bullets(number_of_bullets, target_audience, product, call_to_action, temperature)
|
171 |
col2.markdown(f"""
|
172 |
+
<div class="generated-bullets">
|
173 |
<h4>Mira los bullets generados:</h4>
|
174 |
+
<p>{generated_bullets}</p>
|
175 |
</div>
|
176 |
""", unsafe_allow_html=True)
|
177 |
except Exception as e:
|