Owos commited on
Commit
499c5ad
·
1 Parent(s): 317e2fd

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +7 -8
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
- # selectiuing random iamges to be displayed
156
- img_names = [os.path.join('generated_samples', img) for img in os.listdir('generated_samples')]
157
- five_rand_imgs1 = get_random_subset(img_names, 5)
158
- st.subheader('\n\n\n\n\n\n\n\n Examples of some Generate Images')
159
- display_random_images(five_rand_imgs1, 'Generate image', size=(20, 15))
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