Spaces:
Runtime error
Runtime error
new copies para los textos
Browse files
app.py
CHANGED
@@ -3,14 +3,14 @@ from utils import carga_modelo, genera
|
|
3 |
|
4 |
## pagina principal
|
5 |
|
6 |
-
st.title("
|
7 |
-
st.write("
|
8 |
|
9 |
##Barra lateral
|
10 |
|
11 |
-
st.sidebar.subheader("
|
12 |
st.sidebar.image("assets/mariposa.png", width = 200)
|
13 |
-
st.sidebar.caption("
|
14 |
|
15 |
|
16 |
## Cargamos el modelo
|
@@ -22,7 +22,7 @@ n_mariposas = 4
|
|
22 |
|
23 |
|
24 |
def run_model():
|
25 |
-
with st.spinner("
|
26 |
ims = genera(modelo_gan, n_mariposas)
|
27 |
st.session_state["ims"] = ims
|
28 |
if "ims" not in st.session_state:
|
@@ -31,9 +31,9 @@ if "ims" not in st.session_state:
|
|
31 |
ims = st.session_state["ims"]
|
32 |
|
33 |
run_model_button = st.button(
|
34 |
-
"
|
35 |
on_click = run_model(),
|
36 |
-
help="
|
37 |
)
|
38 |
|
39 |
if ims is not None:
|
|
|
3 |
|
4 |
## pagina principal
|
5 |
|
6 |
+
st.title("Butterfly Generator")
|
7 |
+
st.write("Generate your butterflies with one click!")
|
8 |
|
9 |
##Barra lateral
|
10 |
|
11 |
+
st.sidebar.subheader("ButterflyGAN")
|
12 |
st.sidebar.image("assets/mariposa.png", width = 200)
|
13 |
+
st.sidebar.caption("My first demo using Streamlit")
|
14 |
|
15 |
|
16 |
## Cargamos el modelo
|
|
|
22 |
|
23 |
|
24 |
def run_model():
|
25 |
+
with st.spinner("Crafting your new butterfly :"):
|
26 |
ims = genera(modelo_gan, n_mariposas)
|
27 |
st.session_state["ims"] = ims
|
28 |
if "ims" not in st.session_state:
|
|
|
31 |
ims = st.session_state["ims"]
|
32 |
|
33 |
run_model_button = st.button(
|
34 |
+
"Generate",
|
35 |
on_click = run_model(),
|
36 |
+
help="Still in process"
|
37 |
)
|
38 |
|
39 |
if ims is not None:
|