Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,19 @@ st.set_page_config(page_title="🤖 Soph-IA", layout="wide")
|
|
10 |
|
11 |
api_key = st.secrets["API_KEY"]
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
# Respuestas automatizadas
|
14 |
def respuestas_automatizadas(texto):
|
15 |
texto = texto.lower()
|
@@ -67,7 +80,7 @@ def hablar_texto(texto):
|
|
67 |
return None
|
68 |
|
69 |
# Título centrado
|
70 |
-
st.markdown("<h1>🤖 ¡Bienvenido a Soph-IA!</h1>", unsafe_allow_html=True)
|
71 |
|
72 |
# Explicación técnica
|
73 |
st.markdown("""
|
@@ -115,7 +128,8 @@ with col2:
|
|
115 |
respuesta = procesar_imagen(imagen)
|
116 |
espacio_contenido_generado.markdown(f"<div class='response'>{respuesta}</div>", unsafe_allow_html=True)
|
117 |
|
118 |
-
|
|
|
119 |
|
120 |
-
# Pie de página
|
121 |
st.markdown("<p class='footer'>© 2024 Jeysshon</p>", unsafe_allow_html=True)
|
|
|
10 |
|
11 |
api_key = st.secrets["API_KEY"]
|
12 |
|
13 |
+
# Estilos CSS para centrar el contenido
|
14 |
+
st.markdown("""
|
15 |
+
<style>
|
16 |
+
.center-text {
|
17 |
+
text-align: center;
|
18 |
+
}
|
19 |
+
.footer {
|
20 |
+
text-align: center;
|
21 |
+
font-size: 12px;
|
22 |
+
}
|
23 |
+
</style>
|
24 |
+
""", unsafe_allow_html=True)
|
25 |
+
|
26 |
# Respuestas automatizadas
|
27 |
def respuestas_automatizadas(texto):
|
28 |
texto = texto.lower()
|
|
|
80 |
return None
|
81 |
|
82 |
# Título centrado
|
83 |
+
st.markdown("<h1 class='center-text'>🤖 ¡Bienvenido a Soph-IA!</h1>", unsafe_allow_html=True)
|
84 |
|
85 |
# Explicación técnica
|
86 |
st.markdown("""
|
|
|
128 |
respuesta = procesar_imagen(imagen)
|
129 |
espacio_contenido_generado.markdown(f"<div class='response'>{respuesta}</div>", unsafe_allow_html=True)
|
130 |
|
131 |
+
# Mensaje final centrado
|
132 |
+
st.markdown("<h3 class='center-text'>¡Gracias por usar Soph-IA! 😊</h3>", unsafe_allow_html=True)
|
133 |
|
134 |
+
# Pie de página centrado
|
135 |
st.markdown("<p class='footer'>© 2024 Jeysshon</p>", unsafe_allow_html=True)
|