vishwask commited on
Commit
cdab629
1 Parent(s): 5280e16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -236,10 +236,10 @@ if prompt := st.chat_input("How can I help you today?"):
236
  # #yield word + " "
237
  # time.sleep(0.1)
238
 
239
- # for item in output:
240
- # full_response += english_to_hindi(item)[0]
241
- # message_placeholder.markdown(full_response + "▌")
242
- # message_placeholder.markdown(full_response)
243
  # message_placeholder.markdown(result['source_documents'])
244
 
245
  #stream_example()
@@ -250,7 +250,7 @@ if prompt := st.chat_input("How can I help you today?"):
250
  # message_placeholder.markdown(write(stream_example))
251
 
252
  #write(stream_example)
253
- message_placeholder.markdown(english_to_hindi(output[0])[0])
254
 
255
  # sound_file = BytesIO()
256
  # tts = gTTS(result['result'], lang='en')
 
236
  # #yield word + " "
237
  # time.sleep(0.1)
238
 
239
+ for item in output:
240
+ full_response += item
241
+ message_placeholder.markdown(full_response + "▌")
242
+ message_placeholder.markdown(full_response)
243
  # message_placeholder.markdown(result['source_documents'])
244
 
245
  #stream_example()
 
250
  # message_placeholder.markdown(write(stream_example))
251
 
252
  #write(stream_example)
253
+ #message_placeholder.markdown(english_to_hindi(output[0])[0])
254
 
255
  # sound_file = BytesIO()
256
  # tts = gTTS(result['result'], lang='en')