Skip to content

Commit

Permalink
deprecatedを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
akazdayo committed Dec 15, 2024
1 parent 52b70a4 commit 57f8929
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main():

encoded_img = cv_to_base64(cv2.cvtColor(cimg, cv2.COLOR_BGR2RGB))

web.col1.image(f"data:image/png;base64,{encoded_img}", use_column_width=True)
web.col1.image(f"data:image/png;base64,{encoded_img}", use_container_width=True)

if web.saturation != 1:
cimg = enhance.saturation(cimg, web.saturation)
Expand Down Expand Up @@ -123,8 +123,8 @@ def main():
cimg_rgb = cv2.cvtColor(cimg, cv2.COLOR_BGR2RGB)
encoded_img = cv_to_base64(cimg_rgb)

web.col2.image(f"data:image/png;base64,{encoded_img}", use_column_width=True)
st.sidebar.image(f"data:image/png;base64,{encoded_img}", use_column_width=True)
web.col2.image(f"data:image/png;base64,{encoded_img}", use_container_width=True)
st.sidebar.image(f"data:image/png;base64,{encoded_img}", use_container_width=True)
web.now.write("")
del conv.color_dict
gc.collect()

0 comments on commit 57f8929

Please sign in to comment.