Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -849,7 +849,7 @@ elif st.session_state.page == 'viewer':
|
|
| 849 |
current_image = None
|
| 850 |
|
| 851 |
if current_image:
|
| 852 |
-
scaled_image, scale_ratio, paste_x, paste_y = scale_image_to_fixed_size(current_image, max_width=
|
| 853 |
|
| 854 |
# Wrap canvas in scrollable container
|
| 855 |
st.markdown(f'<div class="image-scroll-container" style="max-height: {scaled_image.height + 40}px;">', unsafe_allow_html=True)
|
|
|
|
| 849 |
current_image = None
|
| 850 |
|
| 851 |
if current_image:
|
| 852 |
+
scaled_image, scale_ratio, paste_x, paste_y = scale_image_to_fixed_size(current_image, max_width=700, max_height=1000)
|
| 853 |
|
| 854 |
# Wrap canvas in scrollable container
|
| 855 |
st.markdown(f'<div class="image-scroll-container" style="max-height: {scaled_image.height + 40}px;">', unsafe_allow_html=True)
|