Spaces:
Running
Running
Mr-Vicky-01
commited on
Commit
β’
226625a
1
Parent(s):
4f21523
Update app.py
Browse files
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("
|
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 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|