Demosthene-OR commited on
Commit
183078b
1 Parent(s): 51d107e

Update chatbot_tab.py

Browse files
Files changed (1) hide show
  1. tabs/chatbot_tab.py +4 -0
tabs/chatbot_tab.py CHANGED
@@ -81,6 +81,8 @@ selected_options5 = []
81
  selected_options6 = []
82
  selected_options7 = []
83
  selected_index8 = 0
 
 
84
  virulence = 1
85
  if 'model' in st.session_state:
86
  used_model = st.session_state.model
@@ -101,6 +103,8 @@ def init():
101
  selected_options6 = []
102
  selected_options7 = []
103
  selected_index8 = 0
 
 
104
  virulence = 1
105
  if 'model' in st.session_state and (st.session_state.model[:3]=="gpt") and ("OPENAI_API_KEY" in st.session_state):
106
  model = ChatOpenAI(model=st.session_state.model,
 
81
  selected_options6 = []
82
  selected_options7 = []
83
  selected_index8 = 0
84
+ context=""
85
+ human_message1=""
86
  virulence = 1
87
  if 'model' in st.session_state:
88
  used_model = st.session_state.model
 
103
  selected_options6 = []
104
  selected_options7 = []
105
  selected_index8 = 0
106
+ context = ""
107
+ human_message1=""
108
  virulence = 1
109
  if 'model' in st.session_state and (st.session_state.model[:3]=="gpt") and ("OPENAI_API_KEY" in st.session_state):
110
  model = ChatOpenAI(model=st.session_state.model,