Daniel Cerda Escobar commited on
Commit
6f43812
·
1 Parent(s): 89c2009

Reshape Image

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -48,12 +48,12 @@ def download_comparison_images():
48
  download_comparison_images()
49
 
50
  if "output_1" not in st.session_state:
51
- with Image.open('plant_pid.png') as img_1:
52
- st.session_state["output_1"] = img_1.load()
53
 
54
  if "output_2" not in st.session_state:
55
- with Image.open('prediction_visual.png') as img_2:
56
- st.session_state["output_2"] = img_2.load()
57
 
58
  col1, col2, col3 = st.columns(3, gap='medium')
59
  with col1:
 
48
  download_comparison_images()
49
 
50
  if "output_1" not in st.session_state:
51
+ img_1 = Image.open('plant_pid.png')
52
+ st.session_state["output_1"] = img_1.resize((4960,3508))
53
 
54
  if "output_2" not in st.session_state:
55
+ img_2 = Image.open('prediction_visual.png')
56
+ st.session_state["output_2"] = img_2.resize((4960,3508))
57
 
58
  col1, col2, col3 = st.columns(3, gap='medium')
59
  with col1: