Spaces:
Sleeping
Sleeping
DrishtiSharma
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -288,7 +288,7 @@ if __name__ == "__main__":
|
|
288 |
preview_image_path = preview_pdf(pdf_path, scale_factor=0.5) # Added scale_factor
|
289 |
if preview_image_path:
|
290 |
st.session_state.pdf_preview = preview_image_path
|
291 |
-
st.image(preview_image_path, caption="First Page Preview",
|
292 |
st.session_state["pdf_preview_displayed"] = True
|
293 |
else:
|
294 |
st.warning("Failed to generate PDF preview.")
|
|
|
288 |
preview_image_path = preview_pdf(pdf_path, scale_factor=0.5) # Added scale_factor
|
289 |
if preview_image_path:
|
290 |
st.session_state.pdf_preview = preview_image_path
|
291 |
+
st.image(preview_image_path, caption="First Page Preview", use_container_width=False)
|
292 |
st.session_state["pdf_preview_displayed"] = True
|
293 |
else:
|
294 |
st.warning("Failed to generate PDF preview.")
|