Spaces:
Runtime error
Runtime error
Ichcanziho
commited on
Commit
•
e574937
1
Parent(s):
af7ef91
Update app.py
Browse files
app.py
CHANGED
@@ -42,6 +42,13 @@ if "ims" not in st.session_state:
|
|
42 |
# ims contiene las imágenes generadas
|
43 |
ims = st.session_state["ims"]
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
# Si la usuaria da click en el botón entonces corremos la función genera()
|
46 |
corre_boton = st.button(
|
47 |
"Crea nuevas mariposas :D",
|
@@ -50,10 +57,5 @@ corre_boton = st.button(
|
|
50 |
)
|
51 |
|
52 |
|
53 |
-
if ims is not None:
|
54 |
-
cols = st.columns(n_mariposas)
|
55 |
-
for j, im in enumerate(ims):
|
56 |
-
i = j % n_mariposas
|
57 |
-
cols[i].image(im, use_column_width=True)
|
58 |
|
59 |
|
|
|
42 |
# ims contiene las imágenes generadas
|
43 |
ims = st.session_state["ims"]
|
44 |
|
45 |
+
|
46 |
+
if ims is not None:
|
47 |
+
cols = st.columns(n_mariposas)
|
48 |
+
for j, im in enumerate(ims):
|
49 |
+
i = j % n_mariposas
|
50 |
+
cols[i].image(im, use_column_width=True)
|
51 |
+
|
52 |
# Si la usuaria da click en el botón entonces corremos la función genera()
|
53 |
corre_boton = st.button(
|
54 |
"Crea nuevas mariposas :D",
|
|
|
57 |
)
|
58 |
|
59 |
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
|