Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,10 +78,6 @@ for msg in st.session_state.history:
|
|
| 78 |
# Single text input for conversation
|
| 79 |
chat = st.text_input("You:", key="chat_input")
|
| 80 |
if chat:
|
| 81 |
-
# record user message
|
| 82 |
st.session_state.history.append({"role": "user", "content": chat})
|
| 83 |
-
# get bot response
|
| 84 |
reply = get_advice(chat)
|
| 85 |
st.session_state.history.append({"role": "assistant", "content": reply})
|
| 86 |
-
# clear input
|
| 87 |
-
st.session_state.chat_input = ""
|
|
|
|
| 78 |
# Single text input for conversation
|
| 79 |
chat = st.text_input("You:", key="chat_input")
|
| 80 |
if chat:
|
|
|
|
| 81 |
st.session_state.history.append({"role": "user", "content": chat})
|
|
|
|
| 82 |
reply = get_advice(chat)
|
| 83 |
st.session_state.history.append({"role": "assistant", "content": reply})
|
|
|
|
|
|