Spaces:
Runtime error
Runtime error
Update Home.py
Browse files
Home.py
CHANGED
@@ -150,14 +150,13 @@ if uploaded_file is not None:
|
|
150 |
run = ste.download_button(button_text="Download Image", data=byte_im, download_filename='afrodreams.jpg', mime="image/png")
|
151 |
|
152 |
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
|
162 |
|
163 |
|
|
|
150 |
run = ste.download_button(button_text="Download Image", data=byte_im, download_filename='afrodreams.jpg', mime="image/png")
|
151 |
|
152 |
|
153 |
+
if run==True
|
154 |
+
# selectiuing random iamges to be displayed
|
155 |
+
img_names = [os.path.join('generated_samples', img) for img in os.listdir('generated_samples')]
|
156 |
+
five_rand_imgs1 = get_random_subset(img_names, 5)
|
157 |
+
st.subheader('\n\n\n\n\n\n\n\n Examples of some Generate Images')
|
158 |
+
display_random_images(five_rand_imgs1, 'Generate image', size=(20, 15))
|
159 |
+
|
|
|
160 |
|
161 |
|
162 |
|