mery22 commited on
Commit
775e85e
1 Parent(s): f553085

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -20
app.py CHANGED
@@ -55,18 +55,24 @@ with col3:
55
 
56
  # Centered title and slogan
57
  st.markdown('<h3 class="center-text">🤖 ALTER-IA BOT,</h3>', unsafe_allow_html=True)
58
- st.markdown('<h4 class="center-text">Votre Réponse à Chaque Défi Méthodologique 📈</h4>', unsafe_allow_html=True)
59
 
60
  # Input and button for user interaction
61
  user_input = st.text_input("You:", "", placeholder="Type your question here...")
62
 
63
- if st.button("Send 📨"):
64
- if user_input.strip():
 
65
  bot_response = chatbot_response(user_input)
66
- st.markdown("### You:")
67
- st.markdown(f"> {user_input}")
68
- st.markdown("### Bot:")
69
- st.markdown(f"> {bot_response}")
 
 
 
 
 
70
  else:
71
  st.warning("⚠️ Please enter a message.")
72
 
@@ -89,16 +95,3 @@ st.markdown(
89
  unsafe_allow_html=True
90
  )
91
 
92
- # Output field with icon
93
- if submit_button:
94
- if user_input.strip() != "":
95
- bot_response = chatbot_response(user_input)
96
- st.markdown(
97
- f"""
98
- <div class="input-container">
99
- <img src="{bot_icon}" alt="Bot Icon" width="30">
100
- <textarea style="flex-grow: 1; background-color: #333333; color: white; padding: 10px; border: none; border-radius: 5px;" rows="5">{bot_response}</textarea>
101
- </div>
102
- """,
103
- unsafe_allow_html=True
104
- )
 
55
 
56
  # Centered title and slogan
57
  st.markdown('<h3 class="center-text">🤖 ALTER-IA BOT,</h3>', unsafe_allow_html=True)
58
+ st.markdown('<h7 class="center-text">Votre Réponse à Chaque Défi Méthodologique 📈</h4>', unsafe_allow_html=True)
59
 
60
  # Input and button for user interaction
61
  user_input = st.text_input("You:", "", placeholder="Type your question here...")
62
 
63
+ # Output field with icon
64
+ if st.button:
65
+ if user_input.strip() != "":
66
  bot_response = chatbot_response(user_input)
67
+ st.markdown(
68
+ f"""
69
+ <div class="input-container">
70
+ <img src="{bot_icon}" alt="Bot Icon" width="30">
71
+ <textarea style="flex-grow: 1; background-color: #333333; color: white; padding: 10px; border: none; border-radius: 5px;" rows="5">{bot_response}</textarea>
72
+ </div>
73
+ """,
74
+ unsafe_allow_html=True
75
+ )
76
  else:
77
  st.warning("⚠️ Please enter a message.")
78
 
 
95
  unsafe_allow_html=True
96
  )
97