Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ def on_input_change():
|
|
143 |
llm_response = response['answer']
|
144 |
st.session_state.generated.append({"type": "normal", "data": f"The message from Bot\nWith new line\n{user_input}"})
|
145 |
st.session_state.history.append(Message("π€ Human", user_input))
|
146 |
-
st.session_state.history.append(Message("π¨π»ββοΈ Ai", llm_response
|
147 |
|
148 |
def on_btn_click():
|
149 |
del st.session_state.past[:]
|
|
|
143 |
llm_response = response['answer']
|
144 |
st.session_state.generated.append({"type": "normal", "data": f"The message from Bot\nWith new line\n{user_input}"})
|
145 |
st.session_state.history.append(Message("π€ Human", user_input))
|
146 |
+
st.session_state.history.append(Message("π¨π»ββοΈ Ai", llm_response))
|
147 |
|
148 |
def on_btn_click():
|
149 |
del st.session_state.past[:]
|