kingav commited on
Commit
9f7e87c
·
verified ·
1 Parent(s): 4e09b20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -10
app.py CHANGED
@@ -207,17 +207,22 @@ if option == "Auto-Regressor":
207
 
208
  my_bar.progress(100)
209
  time.sleep(1)
 
210
 
211
- counter = 0
212
- for i in range(4):
213
- figout = plt.figure(figsize=(9,6))
214
- for j in range(9):
215
- plt.subplot(990 + 1 + j)
216
- plt.imshow(pixels[counter,:,:,0])#, cmap='gray_r')
217
- counter += 1
218
- plt.axis('off')
219
- plt.show()
220
- st.pyplot(figout)
 
 
 
 
221
 
222
  # %%
223
  # else:
 
207
 
208
  my_bar.progress(100)
209
  time.sleep(1)
210
+
211
 
212
+ from PIL import Image
213
+ # figout = plt.figure(figsize=(9,6))
214
+ st.pyplot(Image.fromarray((pixels[-1] * 255).astype(np.uint8), 'RGB').show())
215
+
216
+ # counter = 0
217
+ # for i in range(4):
218
+ # figout = plt.figure(figsize=(9,6))
219
+ # for j in range(9):
220
+ # plt.subplot(990 + 1 + j)
221
+ # plt.imshow(pixels[counter,:,:,0])#, cmap='gray_r')
222
+ # counter += 1
223
+ # plt.axis('off')
224
+ # plt.show()
225
+ # st.pyplot(figout)
226
 
227
  # %%
228
  # else: