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