Spaces:
Running
Running
embed instead of iframe
Browse files- streamlit_app.py +1 -1
streamlit_app.py
CHANGED
@@ -268,7 +268,7 @@ with st.sidebar:
|
|
268 |
@st.cache_resource
|
269 |
def get_pdf_display(binary):
|
270 |
base64_pdf = base64.b64encode(binary).decode('utf-8')
|
271 |
-
return F'<
|
272 |
|
273 |
|
274 |
if uploaded_file and not st.session_state.loaded_embeddings:
|
|
|
268 |
@st.cache_resource
|
269 |
def get_pdf_display(binary):
|
270 |
base64_pdf = base64.b64encode(binary).decode('utf-8')
|
271 |
+
return F'<embed src="data:application/pdf;base64,{base64_pdf}" width="100%" height="700" type="application/pdf"></embed>'
|
272 |
|
273 |
|
274 |
if uploaded_file and not st.session_state.loaded_embeddings:
|