eagle0504 commited on
Commit
274c763
·
verified ·
1 Parent(s): c9d7553

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -80,7 +80,8 @@ if prompt := st.chat_input("😉 Ask any question or feel free to use the exampl
80
  st.session_state["history"].append({"role": "user", "content": prompt})
81
 
82
  # API Call
83
- bot = ChatBot(history=st.session_state["history"])
 
84
  response = bot.generate_response(prompt)
85
 
86
  # Display assistant response in chat message container
 
80
  st.session_state["history"].append({"role": "user", "content": prompt})
81
 
82
  # API Call
83
+ bot = ChatBot()
84
+ bot.history = st.session_state["history"]
85
  response = bot.generate_response(prompt)
86
 
87
  # Display assistant response in chat message container