Spaces:
Running
Running
Update app.py
Browse files
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(
|
|
|
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
|