Spaces:
Running
Running
Fix deprecated use_column_width parameter, replace with use_container_width
Browse files- 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),
|
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:
|