vishwask commited on
Commit
d712e15
1 Parent(s): 95d4e92

Update app.py

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