Update app.py
Browse files
app.py
CHANGED
|
@@ -207,12 +207,15 @@ if prompt := st.chat_input("How can I help you today?"):
|
|
| 207 |
yield word + " "
|
| 208 |
time.sleep(0.1)
|
| 209 |
|
| 210 |
-
for item in output:
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
#message_placeholder.markdown(result['source_documents'])
|
| 215 |
|
|
|
|
|
|
|
|
|
|
| 216 |
# for item in output:
|
| 217 |
# full_response += item
|
| 218 |
# message_placeholder.markdown(write(stream_example))
|
|
@@ -238,7 +241,7 @@ if prompt := st.chat_input("How can I help you today?"):
|
|
| 238 |
generate_pdf()
|
| 239 |
st.session_state['reference'] = '/home/user/app/pdf2image/output.png'
|
| 240 |
st.image(st.session_state['reference'])
|
| 241 |
-
st.write('Book name')
|
| 242 |
|
| 243 |
# if choice == 'TTS':
|
| 244 |
# with open('/home/user/app/audio/audio.mp3','wb') as sound_file:
|
|
|
|
| 207 |
yield word + " "
|
| 208 |
time.sleep(0.1)
|
| 209 |
|
| 210 |
+
# for item in output:
|
| 211 |
+
# full_response += item
|
| 212 |
+
# message_placeholder.markdown(full_response + "▌")
|
| 213 |
+
# message_placeholder.markdown(full_response)
|
| 214 |
#message_placeholder.markdown(result['source_documents'])
|
| 215 |
|
| 216 |
+
message_placeholder.markdown(stream_example())
|
| 217 |
+
|
| 218 |
+
|
| 219 |
# for item in output:
|
| 220 |
# full_response += item
|
| 221 |
# message_placeholder.markdown(write(stream_example))
|
|
|
|
| 241 |
generate_pdf()
|
| 242 |
st.session_state['reference'] = '/home/user/app/pdf2image/output.png'
|
| 243 |
st.image(st.session_state['reference'])
|
| 244 |
+
#st.write('Book name')
|
| 245 |
|
| 246 |
# if choice == 'TTS':
|
| 247 |
# with open('/home/user/app/audio/audio.mp3','wb') as sound_file:
|