Update app.py
Browse files
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 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
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')
|