IAMTFRMZA commited on
Commit
745e01a
·
verified ·
1 Parent(s): 2abe861

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -30,7 +30,7 @@ VOICE_OPTIONS = {
30
  "Luke (SA, Male)": "en-ZA-LukeNeural"
31
  }
32
 
33
- st.set_page_config(page_title="LOR Technologies AI Assistant", layout="wide")
34
 
35
  # --- State setup
36
  if "user_id" not in st.session_state:
@@ -81,8 +81,8 @@ st.markdown("""
81
  # --- Top Branding, Mini Logo ---
82
  st.markdown("""
83
  <div class="lor-brand-bar">
84
- <img src="https://lortechnologies.com/wp-content/uploads/2023/03/LOR-Online-Logo.svg" class="logo-mini" />
85
- <div style="font-size: 13px; color: #888;">Powered by LOR Technologies</div>
86
  </div>
87
  """, unsafe_allow_html=True)
88
 
@@ -138,7 +138,8 @@ def clear_chat_history():
138
 
139
  def display_chat_history():
140
  messages = db.collection("users").document(user_id).collection("messages").order_by("timestamp").stream()
141
- assistant_icon_html = "<img src='https://raw.githubusercontent.com/AndrewLORTech/lortechwebsite/main/lorain.jpg' width='22' style='vertical-align:middle; border-radius:50%;'/>"
 
142
  chat_msgs = []
143
  for msg in list(messages)[::-1]: # Most recent first!
144
  data = msg.to_dict()
@@ -148,7 +149,7 @@ def display_chat_history():
148
  )
149
  else:
150
  chat_msgs.append(
151
- f"<div class='stChatMessage' data-testid='stChatMessage-assistant'>{assistant_icon_html} <strong>LORAIN:</strong> {data['content']}</div>"
152
  )
153
  st.markdown('<div class="chat-history-wrapper">' + "".join(chat_msgs) + '</div>', unsafe_allow_html=True)
154
  st.markdown('<div id="chat-top-anchor"></div>', unsafe_allow_html=True)
 
30
  "Luke (SA, Male)": "en-ZA-LukeNeural"
31
  }
32
 
33
+ st.set_page_config(page_title="C2 Group AI Assistant", layout="wide")
34
 
35
  # --- State setup
36
  if "user_id" not in st.session_state:
 
81
  # --- Top Branding, Mini Logo ---
82
  st.markdown("""
83
  <div class="lor-brand-bar">
84
+ <img src="https://i0.wp.com/c2group.co.za/wp-content/uploads/2022/10/cropped-1_C2-Group-Technologies-Logo-2-1.png?w=1024&ssl=1" class="logo-mini" />
85
+ <div style="font-size: 13px; color: #888;">Powered by C2 Group</div>
86
  </div>
87
  """, unsafe_allow_html=True)
88
 
 
138
 
139
  def display_chat_history():
140
  messages = db.collection("users").document(user_id).collection("messages").order_by("timestamp").stream()
141
+ assistant_icon_html = "<img src='https://img.freepik.com/free-vector/graident-ai-robot-vectorart_78370-4114.jpg?semt=ais_hybrid&w=740' width='22' style='vertical-align:middle; border-radius:50%;'/>"
142
+
143
  chat_msgs = []
144
  for msg in list(messages)[::-1]: # Most recent first!
145
  data = msg.to_dict()
 
149
  )
150
  else:
151
  chat_msgs.append(
152
+ f"<div class='stChatMessage' data-testid='stChatMessage-assistant'>{assistant_icon_html} <strong>C2 AiAssistant:</strong> {data['content']}</div>"
153
  )
154
  st.markdown('<div class="chat-history-wrapper">' + "".join(chat_msgs) + '</div>', unsafe_allow_html=True)
155
  st.markdown('<div id="chat-top-anchor"></div>', unsafe_allow_html=True)