Update app.py
Browse files
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)
|
|
|
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'):
|