Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -80,9 +80,9 @@ def launch_bot():
|
|
80 |
else:
|
81 |
with st.spinner("Thinking..."):
|
82 |
response = generate_response(prompt)
|
83 |
-
st.write(response)
|
84 |
-
|
85 |
-
|
86 |
|
87 |
if __name__ == "__main__":
|
88 |
launch_bot()
|
|
|
80 |
else:
|
81 |
with st.spinner("Thinking..."):
|
82 |
response = generate_response(prompt)
|
83 |
+
#st.write(response)
|
84 |
+
message = {"role": "assistant", "content": response}
|
85 |
+
st.session_state.messages.append(message)
|
86 |
|
87 |
if __name__ == "__main__":
|
88 |
launch_bot()
|