abanm commited on
Commit
c5a798d
·
verified ·
1 Parent(s): 2a57a4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -155,8 +155,8 @@ if prompt:
155
  [f"<|{msg['role']}|>{msg['content']}<|end|>" for msg in st.session_state["messages"]]
156
  )
157
 
 
158
  with st.chat_message("assistant", avatar=DUBS_PATH):
159
- with st.spinner("Dubs is thinking... Woof Woof! 🐾"):
160
  full_response = ""
161
  placeholder = st.empty()
162
  response = stream_response(chat_history, HF_API_KEY)
@@ -169,3 +169,5 @@ if prompt:
169
  st.session_state["messages"].append({"role": "assistant", "content": full_response})
170
  # 6) Persist updated chat history
171
  save_chat_history(st.session_state["session_name"], st.session_state["messages"])
 
 
 
155
  [f"<|{msg['role']}|>{msg['content']}<|end|>" for msg in st.session_state["messages"]]
156
  )
157
 
158
+ with st.spinner("Dubs is thinking... Woof Woof! 🐾"):
159
  with st.chat_message("assistant", avatar=DUBS_PATH):
 
160
  full_response = ""
161
  placeholder = st.empty()
162
  response = stream_response(chat_history, HF_API_KEY)
 
169
  st.session_state["messages"].append({"role": "assistant", "content": full_response})
170
  # 6) Persist updated chat history
171
  save_chat_history(st.session_state["session_name"], st.session_state["messages"])
172
+
173
+