milwright commited on
Commit
4061974
·
1 Parent(s): 4585f4e

Fix deprecated use_column_width parameter, replace with use_container_width

Browse files
Files changed (1) hide show
  1. ui_components.py +1 -1
ui_components.py CHANGED
@@ -386,7 +386,7 @@ def display_document_with_images(result):
386
  try:
387
  # Convert base64 to image
388
  image_data = base64.b64decode(page_data['image_data'])
389
- st.image(io.BytesIO(image_data), use_column_width=True)
390
  except Exception as e:
391
  st.error(f"Error displaying image: {str(e)}")
392
  else:
 
386
  try:
387
  # Convert base64 to image
388
  image_data = base64.b64decode(page_data['image_data'])
389
+ st.image(io.BytesIO(image_data), use_container_width=True)
390
  except Exception as e:
391
  st.error(f"Error displaying image: {str(e)}")
392
  else: