jkushwaha commited on
Commit
97d39b2
·
verified ·
1 Parent(s): 618e95c

Update onhold.py

Browse files
Files changed (1) hide show
  1. onhold.py +2 -7
onhold.py CHANGED
@@ -32,14 +32,9 @@ def onhold():
32
  st.write("### Display Image")
33
  im_path = load_image(image_path, document_id, page_number)
34
  if im_path:
 
35
  st.image(im_path, width=200, use_column_width=False, clamp=True)
36
- st.write(f'<style>div.row-widget.stHorizontal > div{{
37
- flex: 1 1 0px;
38
- overflow-x: auto;
39
- overflow-y: auto;
40
- max-width: 200px;
41
- max-height: 400px;
42
- }}</style>', unsafe_allow_html=True)
43
  else:
44
  st.write("Image not found")
45
 
 
32
  st.write("### Display Image")
33
  im_path = load_image(image_path, document_id, page_number)
34
  if im_path:
35
+ st.write('<div style="overflow-x: auto; overflow-y: auto; height: 400px; width: 200px;">')
36
  st.image(im_path, width=200, use_column_width=False, clamp=True)
37
+ st.write('</div>')
 
 
 
 
 
 
38
  else:
39
  st.write("Image not found")
40