Update app.py
Browse files
app.py
CHANGED
@@ -3,20 +3,47 @@ import streamlit as st
|
|
3 |
# Streamlit interface with improved aesthetics
|
4 |
st.set_page_config(page_title="Chatbot Interface", page_icon="🤖")
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
# Define function to handle user input and display chatbot response
|
7 |
def chatbot_response(user_input):
|
8 |
response = qa.run(user_input)
|
9 |
return response
|
10 |
|
11 |
# Create columns for logos
|
12 |
-
col1, col2, col3 = st.columns([1,
|
13 |
|
14 |
with col1:
|
15 |
st.image("Design 3_2 (1).png", width=150) # Adjust image path and size as needed
|
16 |
|
17 |
with col2:
|
18 |
-
st.markdown("
|
19 |
-
st.markdown("* Votre Réponse à Chaque Défi Méthodologique
|
20 |
|
21 |
with col3:
|
22 |
st.image("Altereo logo 2023 original - eau et territoires durables.png", width=120) # Adjust image path and size as needed
|
|
|
3 |
# Streamlit interface with improved aesthetics
|
4 |
st.set_page_config(page_title="Chatbot Interface", page_icon="🤖")
|
5 |
|
6 |
+
# Custom CSS for dark mode
|
7 |
+
st.markdown(
|
8 |
+
"""
|
9 |
+
<style>
|
10 |
+
body {
|
11 |
+
background-color: #1e1e1e;
|
12 |
+
color: #ffffff;
|
13 |
+
}
|
14 |
+
.stButton button {
|
15 |
+
background-color: #4CAF50;
|
16 |
+
color: white;
|
17 |
+
}
|
18 |
+
.stTextInput input {
|
19 |
+
background-color: #333333;
|
20 |
+
color: white;
|
21 |
+
}
|
22 |
+
.stMarkdown {
|
23 |
+
color: #ffffff;
|
24 |
+
}
|
25 |
+
.footer-logo img {
|
26 |
+
width: 100px; /* Adjust width as necessary */
|
27 |
+
}
|
28 |
+
</style>
|
29 |
+
""",
|
30 |
+
unsafe_allow_html=True
|
31 |
+
)
|
32 |
+
def chatbot_response
|
33 |
# Define function to handle user input and display chatbot response
|
34 |
def chatbot_response(user_input):
|
35 |
response = qa.run(user_input)
|
36 |
return response
|
37 |
|
38 |
# Create columns for logos
|
39 |
+
col1, col2, col3 = st.columns([1, 6, 1])
|
40 |
|
41 |
with col1:
|
42 |
st.image("Design 3_2 (1).png", width=150) # Adjust image path and size as needed
|
43 |
|
44 |
with col2:
|
45 |
+
st.markdown("## 🤖 ALTER-IA BOT, ")
|
46 |
+
st.markdown("* Votre Réponse à Chaque Défi Méthodologique 📈. *")
|
47 |
|
48 |
with col3:
|
49 |
st.image("Altereo logo 2023 original - eau et territoires durables.png", width=120) # Adjust image path and size as needed
|