Mr-Vicky-01 commited on
Commit
226625a
β€’
1 Parent(s): 4f21523

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -104,16 +104,9 @@ if user_prompt and uploaded_file:
104
  st.write(user_prompt)
105
 
106
  # Trigger assistant's response retrieval and update UI
107
- with st.spinner("Assistant is typing..."):
108
  response = handle_query(user_prompt)
109
  with st.chat_message("user", avatar="πŸ‘½"):
110
  st.write(response)
111
  st.session_state.messages.append({'role': 'assistant', "content": response})
112
-
113
-
114
- # if st.session_state.messages[-1]["role"] != "assistant":
115
- # with st.chat_message("assistant", avatar="πŸ‘½"):
116
- # response = handle_query(user_prompt)
117
- # full_response = st.write(response)
118
- # message = {"role": "assistant", "content": full_response}
119
- # st.session_state.messages.append(message)
 
104
  st.write(user_prompt)
105
 
106
  # Trigger assistant's response retrieval and update UI
107
+ with st.spinner("Thinking..."):
108
  response = handle_query(user_prompt)
109
  with st.chat_message("user", avatar="πŸ‘½"):
110
  st.write(response)
111
  st.session_state.messages.append({'role': 'assistant', "content": response})
112
+