MilanM commited on
Commit
6ccffb2
·
verified ·
1 Parent(s): 5f19541

Update neo_sages4.py

Browse files
Files changed (1) hide show
  1. neo_sages4.py +4 -6
neo_sages4.py CHANGED
@@ -54,8 +54,6 @@ def check_password():
54
  return True
55
 
56
  def initialize_session_state():
57
- if 'chat_history' not in st.session_state:
58
- st.session_state.chat_history = []
59
  if 'chat_history_1' not in st.session_state:
60
  st.session_state.chat_history_1 = []
61
  if 'chat_history_2' not in st.session_state:
@@ -508,8 +506,8 @@ def main():
508
 
509
  if genparam.INPUT_DEBUG_VIEW == 1:
510
  with col1: # Access first column
511
- bot_name = genparam.BOT_2_NAME if chat_history == st.session_state.chat_history_2 else genparam.BOT_3_NAME
512
- bot_avatar = genparam.BOT_2_AVATAR if chat_history == st.session_state.chat_history_2 else genparam.BOT_3_AVATAR
513
  st.markdown(f"**{bot_avatar} {bot_name} Prompt Data:**")
514
  st.code(prompt_data, language="text")
515
 
@@ -547,8 +545,8 @@ def main():
547
 
548
  if genparam.INPUT_DEBUG_VIEW == 1:
549
  with col1: # Access first column
550
- bot_name = genparam.BOT_2_NAME if chat_history == st.session_state.chat_history_2 else genparam.BOT_3_NAME
551
- bot_avatar = genparam.BOT_2_AVATAR if chat_history == st.session_state.chat_history_2 else genparam.BOT_3_AVATAR
552
  st.markdown(f"**{bot_avatar} {bot_name} Prompt Data:**")
553
  st.code(prompt_data, language="text")
554
 
 
54
  return True
55
 
56
  def initialize_session_state():
 
 
57
  if 'chat_history_1' not in st.session_state:
58
  st.session_state.chat_history_1 = []
59
  if 'chat_history_2' not in st.session_state:
 
506
 
507
  if genparam.INPUT_DEBUG_VIEW == 1:
508
  with col1: # Access first column
509
+ bot_name = genparam.BOT_2_NAME if chat_history_1 == st.session_state.chat_history_2 else genparam.BOT_3_NAME
510
+ bot_avatar = genparam.BOT_2_AVATAR if chat_history_1 == st.session_state.chat_history_2 else genparam.BOT_3_AVATAR
511
  st.markdown(f"**{bot_avatar} {bot_name} Prompt Data:**")
512
  st.code(prompt_data, language="text")
513
 
 
545
 
546
  if genparam.INPUT_DEBUG_VIEW == 1:
547
  with col1: # Access first column
548
+ bot_name = genparam.BOT_2_NAME if chat_history_1 == st.session_state.chat_history_2 else genparam.BOT_3_NAME
549
+ bot_avatar = genparam.BOT_2_AVATAR if chat_history_1 == st.session_state.chat_history_2 else genparam.BOT_3_AVATAR
550
  st.markdown(f"**{bot_avatar} {bot_name} Prompt Data:**")
551
  st.code(prompt_data, language="text")
552