vishwask commited on
Commit
f21a3d5
1 Parent(s): f4722ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -152,7 +152,6 @@ if prompt := st.chat_input("How can I help you today?"):
152
  output = [result['result']]
153
 
154
  def generate_pdf():
155
- generate_audio()
156
  page_number = int(result['source_documents'][0].metadata['page'])
157
  doc = fitz.open(str(result['source_documents'][0].metadata['source']))
158
  text = str(result['source_documents'][0].page_content)
@@ -189,7 +188,7 @@ if prompt := st.chat_input("How can I help you today?"):
189
  message_placeholder.markdown(full_response + "▌")
190
  message_placeholder.markdown(full_response)
191
 
192
- if st.toggle("Reference and Sound"):
193
  generate_pdf()
194
 
195
  st.session_state.messages.append({"role": "assistant", "content": full_response})
 
152
  output = [result['result']]
153
 
154
  def generate_pdf():
 
155
  page_number = int(result['source_documents'][0].metadata['page'])
156
  doc = fitz.open(str(result['source_documents'][0].metadata['source']))
157
  text = str(result['source_documents'][0].page_content)
 
188
  message_placeholder.markdown(full_response + "▌")
189
  message_placeholder.markdown(full_response)
190
 
191
+ if st.toggle("Reference"):
192
  generate_pdf()
193
 
194
  st.session_state.messages.append({"role": "assistant", "content": full_response})