suriya7 commited on
Commit
3b231e9
1 Parent(s): 95bd934

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -91,7 +91,7 @@ def get_pdf_text(pdf_docs):
91
  def response_streaming(text):
92
  for i in text:
93
  yield i
94
- time.sleep(0.01)
95
 
96
  def get_url_text(url_link):
97
  try:
@@ -139,7 +139,8 @@ if user_input:
139
  st.session_state.messages.append({'role': 'user', "content": user_input})
140
  with st.chat_message("user"):
141
  st.write(user_input)
142
- response = conversational_chat(user_input)
 
143
  # stream = response_streaming(response)
144
 
145
  with st.chat_message("assistant"):
 
91
  def response_streaming(text):
92
  for i in text:
93
  yield i
94
+ time.sleep(0.001)
95
 
96
  def get_url_text(url_link):
97
  try:
 
139
  st.session_state.messages.append({'role': 'user', "content": user_input})
140
  with st.chat_message("user"):
141
  st.write(user_input)
142
+ with st.spinner("Thinking..."):
143
+ response = conversational_chat(user_input)
144
  # stream = response_streaming(response)
145
 
146
  with st.chat_message("assistant"):