Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ retriever = db.as_retriever(
|
|
39 |
prompt_template = """
|
40 |
### [INST]
|
41 |
Instruction: You are a Q&A assistant. Your goal is to answer questions as accurately as possible based on the instructions and context provided without using prior knowledge.You answer in FRENCH
|
42 |
-
Analyse carefully the context and provide a direct answer based on the context.
|
43 |
Answer in french only
|
44 |
{context}
|
45 |
Vous devez répondre aux questions en français.
|
@@ -86,7 +86,6 @@ def chatbot_response(user_input):
|
|
86 |
return response
|
87 |
|
88 |
# Streamlit components
|
89 |
-
st.image("Altereo logo 2023 original - eau et territoires durables.png", width=200) # Adjust the width as needed
|
90 |
st.markdown("# 🤖 **Your Friendly Methodo Assistant**")
|
91 |
st.markdown("## \"Votre Réponse à Chaque Défi Méthodologique\" 📈")
|
92 |
|
@@ -107,3 +106,32 @@ if submit_button:
|
|
107 |
# Motivational quote at the bottom
|
108 |
st.markdown("---")
|
109 |
st.markdown("*La collaboration est la clé du succès. Chaque question trouve sa réponse, chaque défi devient une opportunité.*")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
prompt_template = """
|
40 |
### [INST]
|
41 |
Instruction: You are a Q&A assistant. Your goal is to answer questions as accurately as possible based on the instructions and context provided without using prior knowledge.You answer in FRENCH
|
42 |
+
Analyse carefully the context and provide a direct answer based on the context. If the user said Bonjour you answer with Hi! comment puis-je vous aider?
|
43 |
Answer in french only
|
44 |
{context}
|
45 |
Vous devez répondre aux questions en français.
|
|
|
86 |
return response
|
87 |
|
88 |
# Streamlit components
|
|
|
89 |
st.markdown("# 🤖 **Your Friendly Methodo Assistant**")
|
90 |
st.markdown("## \"Votre Réponse à Chaque Défi Méthodologique\" 📈")
|
91 |
|
|
|
106 |
# Motivational quote at the bottom
|
107 |
st.markdown("---")
|
108 |
st.markdown("*La collaboration est la clé du succès. Chaque question trouve sa réponse, chaque défi devient une opportunité.*")
|
109 |
+
|
110 |
+
# Add CSS for positioning the logo at the bottom
|
111 |
+
st.markdown(
|
112 |
+
"""
|
113 |
+
<style>
|
114 |
+
.footer-logo {
|
115 |
+
position: fixed;
|
116 |
+
bottom: 10px;
|
117 |
+
width: 100%;
|
118 |
+
text-align: center;
|
119 |
+
}
|
120 |
+
.footer-logo img {
|
121 |
+
width: 100px; # Adjust width as necessary
|
122 |
+
}
|
123 |
+
</style>
|
124 |
+
""",
|
125 |
+
unsafe_allow_html=True
|
126 |
+
)
|
127 |
+
|
128 |
+
# Add logo to the bottom
|
129 |
+
st.markdown(
|
130 |
+
"""
|
131 |
+
<div class="footer-logo">
|
132 |
+
<img src="Altereo logo 2023 original - eau et territoires durables.png" alt="Enterprise Logo">
|
133 |
+
</div>
|
134 |
+
""",
|
135 |
+
unsafe_allow_html=True
|
136 |
+
)
|
137 |
+
|