Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -207,17 +207,22 @@ if option == "Auto-Regressor":
|
|
207 |
|
208 |
my_bar.progress(100)
|
209 |
time.sleep(1)
|
|
|
210 |
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
|
|
|
|
|
|
|
|
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:
|