vishwask commited on
Commit
23ef3ca
1 Parent(s): 2f4f55a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -191,17 +191,17 @@ if prompt := st.chat_input("How can I help you today?"):
191
  yield word + " "
192
  time.sleep(0.1)
193
 
194
- # for item in output:
195
- # full_response += item
196
- # message_placeholder.markdown(full_response + "▌")
197
- # message_placeholder.markdown(full_response)
198
 
199
  # for item in output:
200
  # full_response += item
201
  # message_placeholder.markdown(write(stream_example))
202
 
203
  #write(stream_example)
204
- message_placeholder.markdown(result['result'])
205
 
206
  sound_file = BytesIO()
207
  tts = gTTS(result['result'], lang='en')
 
191
  yield word + " "
192
  time.sleep(0.1)
193
 
194
+ for item in output:
195
+ full_response += item
196
+ message_placeholder.markdown(full_response + "▌")
197
+ message_placeholder.markdown(full_response)
198
 
199
  # for item in output:
200
  # full_response += item
201
  # message_placeholder.markdown(write(stream_example))
202
 
203
  #write(stream_example)
204
+ # message_placeholder.markdown(result['result'])
205
 
206
  sound_file = BytesIO()
207
  tts = gTTS(result['result'], lang='en')