KushwanthK commited on
Commit
bf8af40
·
verified ·
1 Parent(s): 077cd99

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -195,7 +195,7 @@ def display_highlighted_pdf(file_path, text_to_highlight, sources):
195
  with open(pdf_path, "rb") as file:
196
  pdf_bytes = file.read()
197
  base64_pdf = base64.b64encode(pdf_bytes).decode("utf-8")
198
- pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width="700" height="1000" type="application/pdf"></iframe>'
199
  st.markdown(pdf_display, unsafe_allow_html=True)
200
 
201
  # Creating a Index(Pinecone Vector Database)
 
195
  with open(pdf_path, "rb") as file:
196
  pdf_bytes = file.read()
197
  base64_pdf = base64.b64encode(pdf_bytes).decode("utf-8")
198
+ pdf_display = f'<iframe is="x-frame-bypass", src="data:application/pdf;base64,{base64_pdf}" width="700" height="1000" type="application/pdf"></iframe>'
199
  st.markdown(pdf_display, unsafe_allow_html=True)
200
 
201
  # Creating a Index(Pinecone Vector Database)