Owos commited on
Commit
f1aa575
·
1 Parent(s): df3c5b3

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +6 -6
Home.py CHANGED
@@ -150,12 +150,12 @@ 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
- 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
 
 
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