DrishtiSharma commited on
Commit
f42bb6f
·
verified ·
1 Parent(s): aa2e930

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", use_column_width=False)
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.")