vishwask commited on
Commit
1427249
1 Parent(s): 244bfef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -216,11 +216,11 @@ if prompt := st.chat_input("How can I help you today?"):
216
  # #yield word + " "
217
  # time.sleep(0.1)
218
 
219
- for item in output:
220
- full_response += item
221
- message_placeholder.markdown(full_response + "▌")
222
- message_placeholder.markdown(full_response)
223
- # message_placeholder.markdown(result['source_documents'])
224
 
225
  #stream_example()
226
 
@@ -230,7 +230,7 @@ if prompt := st.chat_input("How can I help you today?"):
230
  # message_placeholder.markdown(write(stream_example))
231
 
232
  #write(stream_example)
233
- # message_placeholder.markdown(result['result'])
234
 
235
  sound_file = BytesIO()
236
  tts = gTTS(result['result'], lang='en')
 
216
  # #yield word + " "
217
  # time.sleep(0.1)
218
 
219
+ # for item in output:
220
+ # full_response += item
221
+ # message_placeholder.markdown(full_response + "▌")
222
+ # message_placeholder.markdown(full_response)
223
+ # # message_placeholder.markdown(result['source_documents'])
224
 
225
  #stream_example()
226
 
 
230
  # message_placeholder.markdown(write(stream_example))
231
 
232
  #write(stream_example)
233
+ message_placeholder.markdown(result['result'])
234
 
235
  sound_file = BytesIO()
236
  tts = gTTS(result['result'], lang='en')