PrakhAI commited on
Commit
ea32c56
·
1 Parent(s): 72ae9b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -37,7 +37,8 @@ def generate_images(previous=None):
37
  with col:
38
  idx = row*COLUMNS + col_idx
39
  st.image(Image.fromarray(img[idx]))
40
- st.button(label="Generate similar", key="%d_%d" % (unique_id, idx), on_click=generate_images, args=(latents[idx]))
 
41
 
42
  st.write("The model and its details are at https://huggingface.co/PrakhAI/AIPlane2")
43
  if st.button('Generate Random'):
 
37
  with col:
38
  idx = row*COLUMNS + col_idx
39
  st.image(Image.fromarray(img[idx]))
40
+ if st.button(label="Generate similar", key="%d_%d" % (unique_id, idx)):
41
+ generate_images(latents[idx])
42
 
43
  st.write("The model and its details are at https://huggingface.co/PrakhAI/AIPlane2")
44
  if st.button('Generate Random'):