Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,10 +82,8 @@ if 'messages' not in st.session_state:
|
|
82 |
st.session_state.messages = [{'role': 'assistant', "content": '隆Hola! Soy tu asesor personalizado.'}]
|
83 |
|
84 |
# Streamlit app initialization
|
85 |
-
st.title("Chatbot de dudas
|
86 |
-
st.markdown("
|
87 |
-
st.markdown("La informaci贸n que puedo proporcionarte est谩 restringida al contenido de un documento de contexto sobre el proceso de admisi贸n para la DFP")
|
88 |
-
st.markdown("Desarrollado por el Profesor Marco Medina Rajo")
|
89 |
st.markdown("""
|
90 |
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
|
91 |
<iframe src="https://www.youtube.com/embed/UFqvwF9xvAM?si=4qFqwSpsr5Fh9bd7" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
|
@@ -96,7 +94,7 @@ st.markdown("""
|
|
96 |
if os.path.exists(FIXED_PDF_PATH):
|
97 |
index = load_data()
|
98 |
else:
|
99 |
-
st.error("No
|
100 |
|
101 |
# Chat input
|
102 |
user_prompt = st.chat_input("驴Qu茅 quieres saber sobre la admisi贸n?:")
|
@@ -108,3 +106,5 @@ if user_prompt:
|
|
108 |
for message in st.session_state.messages:
|
109 |
with st.chat_message(message['role']):
|
110 |
st.write(message['content'])
|
|
|
|
|
|
82 |
st.session_state.messages = [{'role': 'assistant', "content": '隆Hola! Soy tu asesor personalizado.'}]
|
83 |
|
84 |
# Streamlit app initialization
|
85 |
+
st.title("Chatbot de dudas DFP")
|
86 |
+
st.markdown("Resuelvo dudas sobre el r茅gimen econ贸mico y admisi贸n de la Direcci贸n de Formaci贸n Permanente en el Centro Universitario de Santa B谩rbara.")
|
|
|
|
|
87 |
st.markdown("""
|
88 |
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
|
89 |
<iframe src="https://www.youtube.com/embed/UFqvwF9xvAM?si=4qFqwSpsr5Fh9bd7" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
|
|
|
94 |
if os.path.exists(FIXED_PDF_PATH):
|
95 |
index = load_data()
|
96 |
else:
|
97 |
+
st.error("No pude cargar la informaci贸n.")
|
98 |
|
99 |
# Chat input
|
100 |
user_prompt = st.chat_input("驴Qu茅 quieres saber sobre la admisi贸n?:")
|
|
|
106 |
for message in st.session_state.messages:
|
107 |
with st.chat_message(message['role']):
|
108 |
st.write(message['content'])
|
109 |
+
st.markdown("Mi informaci贸n est谩 limitada a un documento sobre el proceso de admisi贸n a la DFP.")
|
110 |
+
st.markdown("Desarrollado por el Profesor Marco Medina Rajo.")
|