jkushwaha commited on
Commit
41761b0
·
verified ·
1 Parent(s): 6b50a07

Update addon.py

Browse files
Files changed (1) hide show
  1. addon.py +3 -1
addon.py CHANGED
@@ -66,7 +66,9 @@ def main():
66
  st.write("### Display Image")
67
  im_path = load_image(image_path, document_id, page_number)
68
  if im_path:
69
- st.image(im_path)
 
 
70
  else:
71
  st.write("Image not found")
72
 
 
66
  st.write("### Display Image")
67
  im_path = load_image(image_path, document_id, page_number)
68
  if im_path:
69
+ # Wrap the image into a vertical slider
70
+ st.slider("", 0, 1, 0, 1, key="image_slider", value=0, orientation='vertical', format="")
71
+ st.image(im_path, use_column_width=True)
72
  else:
73
  st.write("Image not found")
74