Update app.py
Browse files
app.py
CHANGED
|
@@ -5,20 +5,21 @@ 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 |
-
|
| 9 |
-
|
| 10 |
-
# Streamlit components
|
| 11 |
|
| 12 |
# Create columns for logos
|
| 13 |
-
col1, col2, col3 = st.columns([
|
| 14 |
|
| 15 |
with col1:
|
| 16 |
-
st.image("Design 3_2 (1).png",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
with col3:
|
| 19 |
-
st.image("Altereo logo 2023 original - eau et territoires durables.png",
|
| 20 |
-
st.markdown("### 🤖 ALTER-IA BOT, ton assistant virtuel de tous les jours")
|
| 21 |
-
st.markdown("##### Votre Réponse à Chaque Défi Méthodologique 📈")
|
| 22 |
|
| 23 |
# Input and button for user interaction
|
| 24 |
user_input = st.text_input("You:", "")
|
|
@@ -37,4 +38,4 @@ if submit_button:
|
|
| 37 |
|
| 38 |
# Motivational quote at the bottom
|
| 39 |
st.markdown("---")
|
| 40 |
-
st.markdown("*La collaboration est la clé du succès. Chaque question trouve sa réponse, chaque défi devient une opportunité.*")
|
|
|
|
| 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, 3, 1])
|
| 13 |
|
| 14 |
with col1:
|
| 15 |
+
st.image("Design 3_2 (1).png", width=100) # Adjust image path and size as needed
|
| 16 |
+
|
| 17 |
+
with col2:
|
| 18 |
+
st.markdown("# 🤖 ALTER-IA BOT, ton assistant virtuel de tous les jours")
|
| 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=100) # Adjust image path and size as needed
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# Input and button for user interaction
|
| 25 |
user_input = st.text_input("You:", "")
|
|
|
|
| 38 |
|
| 39 |
# Motivational quote at the bottom
|
| 40 |
st.markdown("---")
|
| 41 |
+
st.markdown("*La collaboration est la clé du succès. Chaque question trouve sa réponse, chaque défi devient une opportunité.*")
|