Satyam Gupta commited on
Commit
8b545ea
·
unverified ·
1 Parent(s): 17be56f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -141,8 +141,8 @@ with st.spinner('LOADING'):
141
  im = Image.open(img_buf)
142
  im = im.resize((450, 450))
143
  with st.container():
144
- st.write(f'Total Principal Components : {min(img_array.shape[0], img_array.shape[1])}')
145
- st.write(f'Compression Ratio: {100*(reduced_size_r+reduced_size_g+reduced_size_b)/(orig_size_r+orig_size_g+orig_size_b)}')
146
  caption_li=['Original Image','All three channels Reconstruction Loss' ,f'Reconstructed Image with {no_of_comp} components']
147
  images = [new_image, im ,recon_color_img]
148
  st.image(images, caption=caption_li, width=400)
 
141
  im = Image.open(img_buf)
142
  im = im.resize((450, 450))
143
  with st.container():
144
+ st.write(f'Total No. of Principal Components : {min(img_array.shape[0], img_array.shape[1])}')
145
+ #st.write(f'Compression Ratio: {100*(reduced_size_r+reduced_size_g+reduced_size_b)/(orig_size_r+orig_size_g+orig_size_b)}')
146
  caption_li=['Original Image','All three channels Reconstruction Loss' ,f'Reconstructed Image with {no_of_comp} components']
147
  images = [new_image, im ,recon_color_img]
148
  st.image(images, caption=caption_li, width=400)