|
import streamlit as st |
|
|
|
|
|
st.set_page_config(page_title="Chatbot Interface", page_icon="🤖") |
|
|
|
|
|
def chatbot_response(user_input): |
|
print("xxx") |
|
|
|
|
|
st.markdown("### 🤖 ALTER-IA BOT, ton assistant virtuel de tous les jours") |
|
st.markdown("##### Votre Réponse à Chaque Défi Méthodologique 📈") |
|
|
|
|
|
col1, col2, col3 = st.columns([-1, 6, 1]) |
|
|
|
with col1: |
|
st.image("Design 3_2 (1).png", width= 200, use_column_width=True) |
|
|
|
with col3: |
|
st.image("Altereo logo 2023 original - eau et territoires durables.png", width= 200, use_column_width=True) |
|
|
|
|
|
user_input = st.text_input("You:", "") |
|
submit_button = st.button("Send 📨") |
|
|
|
|
|
if submit_button: |
|
if user_input.strip() != "": |
|
bot_response = chatbot_response(user_input) |
|
st.markdown("### You:") |
|
st.markdown(f"> {user_input}") |
|
st.markdown("### Bot:") |
|
st.markdown(f"> {bot_response}") |
|
else: |
|
st.warning("⚠️ Please enter a message.") |
|
|
|
|
|
st.markdown("---") |
|
st.markdown("*La collaboration est la clé du succès. Chaque question trouve sa réponse, chaque défi devient une opportunité.*") |