Davies commited on
Commit
148921f
1 Parent(s): 8cdc429

new copies para los textos

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -3,14 +3,14 @@ from utils import carga_modelo, genera
3
 
4
  ## pagina principal
5
 
6
- st.title("Generador de Mariposas")
7
- st.write("Este es un modelo Light GAN pre entrenado")
8
 
9
  ##Barra lateral
10
 
11
- st.sidebar.subheader("Esta Mariposa no existe! haha")
12
  st.sidebar.image("assets/mariposa.png", width = 200)
13
- st.sidebar.caption("Dema creado usando Streamlit")
14
 
15
 
16
  ## Cargamos el modelo
@@ -22,7 +22,7 @@ n_mariposas = 4
22
 
23
 
24
  def run_model():
25
- with st.spinner("Generando Mariposa... :"):
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
- "Genera Mariposa",
35
  on_click = run_model(),
36
- help="Estamos generando la Mariposa"
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: