coder commited on
Commit
c91fa7e
·
1 Parent(s): 551e28c

update all

Browse files
Files changed (3) hide show
  1. Home.py +6 -4
  2. core/estilos/home.css +5 -3
  3. core/estilos/main.css +0 -1
Home.py CHANGED
@@ -77,6 +77,7 @@ class Home(Page):
77
  archivo_expander = imagen_base.expander(expanded=False,
78
  label="Desde su Galería")
79
  _archivo = archivo_expander.file_uploader(label="Galería",
 
80
  accept_multiple_files=False,
81
  label_visibility="visible")
82
  if (archivo_expander.button(label="Cargar Archivo", type="secondary", use_container_width=True,
@@ -85,7 +86,8 @@ class Home(Page):
85
 
86
  camara_expander = imagen_base.expander(expanded=False,
87
  label="Desde su Cámara")
88
- _captura = camara_expander.camera_input(label="Cámara",
 
89
  label_visibility="visible")
90
  if (camara_expander.button(label="Cargar Captura", type="secondary", use_container_width=True,
91
  help="Tome una fotografía.") and _captura is not None):
@@ -93,7 +95,7 @@ class Home(Page):
93
 
94
  def expander_configuraciones(self, placeholder):
95
  configuraciones = placeholder.expander(
96
- expanded=False, label="Configuraciones")
97
  modelo = configuraciones.text_input(
98
  label="MODELO", on_change=None, label_visibility="visible",
99
  value=self.get_global('settings').get('model'))
@@ -129,13 +131,13 @@ class Home(Page):
129
  self.expander_instrucciones(columna_inputs)
130
  self.expander_imagen_base(columna_inputs)
131
  self.expander_configuraciones(columna_inputs)
132
- if columna_inputs.button(label="Clasificar", help="Realizar Predicciones",
133
  type="secondary", use_container_width=True):
134
  self.procesar_imagen()
135
  self.resultados(columna_outputs)
136
 
137
  def build(self):
138
- # secciones
139
  columna_principal = self.get_body().columns(1, gap="small")[0]
140
  self.agregar_card_base(columna_principal)
141
 
 
77
  archivo_expander = imagen_base.expander(expanded=False,
78
  label="Desde su Galería")
79
  _archivo = archivo_expander.file_uploader(label="Galería",
80
+ on_change=None,
81
  accept_multiple_files=False,
82
  label_visibility="visible")
83
  if (archivo_expander.button(label="Cargar Archivo", type="secondary", use_container_width=True,
 
86
 
87
  camara_expander = imagen_base.expander(expanded=False,
88
  label="Desde su Cámara")
89
+ _captura = camara_expander.camera_input(label="Cámara",
90
+ on_change=None,
91
  label_visibility="visible")
92
  if (camara_expander.button(label="Cargar Captura", type="secondary", use_container_width=True,
93
  help="Tome una fotografía.") and _captura is not None):
 
95
 
96
  def expander_configuraciones(self, placeholder):
97
  configuraciones = placeholder.expander(
98
+ expanded=False, label="Configuraciones Avanzadas")
99
  modelo = configuraciones.text_input(
100
  label="MODELO", on_change=None, label_visibility="visible",
101
  value=self.get_global('settings').get('model'))
 
131
  self.expander_instrucciones(columna_inputs)
132
  self.expander_imagen_base(columna_inputs)
133
  self.expander_configuraciones(columna_inputs)
134
+ if columna_inputs.button(label="Clasificar / Predecir", help="Realizar Predicciones",
135
  type="secondary", use_container_width=True):
136
  self.procesar_imagen()
137
  self.resultados(columna_outputs)
138
 
139
  def build(self):
140
+
141
  columna_principal = self.get_body().columns(1, gap="small")[0]
142
  self.agregar_card_base(columna_principal)
143
 
core/estilos/home.css CHANGED
@@ -1,6 +1,6 @@
1
  /* Estilo Cards */
2
  [data-testid="stVerticalBlock"]>[style*="flex-direction: column;"]>[data-testid="stVerticalBlock"] {
3
- background-color: #070707ef;
4
  box-shadow: 1px 1px 2px 2px #000000d2;
5
  box-sizing: border-box;
6
  padding: 4px 0px 20px 0px;
@@ -13,11 +13,10 @@
13
 
14
  /* Estilo Cards:Hover*/
15
  [data-testid="stVerticalBlock"]>[style*="flex-direction: column;"]>[data-testid="stVerticalBlock"]:hover {
16
- background-color: #070707d0;
17
  border: 2px thin;
18
  box-shadow: 2px 2px 3px 3px #000000fe;
19
  transition: ease-in;
20
- transition-property: background-color box-shadow transition;
21
  transition-duration: 110ms;
22
  }
23
 
@@ -31,11 +30,13 @@
31
  /* Interno Card: Texto */
32
  [data-testid="stVerticalBlock"]>[style*="flex-direction: column;"]>[data-testid="stVerticalBlock"]>[data-testid="element-container"]>.stTextLabelWrapper>[data-testid="stText"] {
33
  padding: 0px 8px 0px 8px;
 
34
  }
35
 
36
  /* Interno Card: Markup */
37
  [data-testid="stVerticalBlock"]>[style*="flex-direction: column;"]>[data-testid="stVerticalBlock"]>[data-testid="element-container"]>.stMarkdown>[data-testid="stMarkdownContainer"] {
38
  padding: 0px 8px 0px 8px;
 
39
  }
40
 
41
  /* Interno Card: Row imagenes */
@@ -58,4 +59,5 @@
58
  justify-content: center;
59
  text-align: center;
60
  width: 100%;
 
61
  }
 
1
  /* Estilo Cards */
2
  [data-testid="stVerticalBlock"]>[style*="flex-direction: column;"]>[data-testid="stVerticalBlock"] {
3
+ background-color: #070707;
4
  box-shadow: 1px 1px 2px 2px #000000d2;
5
  box-sizing: border-box;
6
  padding: 4px 0px 20px 0px;
 
13
 
14
  /* Estilo Cards:Hover*/
15
  [data-testid="stVerticalBlock"]>[style*="flex-direction: column;"]>[data-testid="stVerticalBlock"]:hover {
 
16
  border: 2px thin;
17
  box-shadow: 2px 2px 3px 3px #000000fe;
18
  transition: ease-in;
19
+ transition-property: box-shadow transition;
20
  transition-duration: 110ms;
21
  }
22
 
 
30
  /* Interno Card: Texto */
31
  [data-testid="stVerticalBlock"]>[style*="flex-direction: column;"]>[data-testid="stVerticalBlock"]>[data-testid="element-container"]>.stTextLabelWrapper>[data-testid="stText"] {
32
  padding: 0px 8px 0px 8px;
33
+ color:white;
34
  }
35
 
36
  /* Interno Card: Markup */
37
  [data-testid="stVerticalBlock"]>[style*="flex-direction: column;"]>[data-testid="stVerticalBlock"]>[data-testid="element-container"]>.stMarkdown>[data-testid="stMarkdownContainer"] {
38
  padding: 0px 8px 0px 8px;
39
+ color:white;
40
  }
41
 
42
  /* Interno Card: Row imagenes */
 
59
  justify-content: center;
60
  text-align: center;
61
  width: 100%;
62
+ background-color: crimson;
63
  }
core/estilos/main.css CHANGED
@@ -1,5 +1,4 @@
1
  /* Contenedor principal de la aplicación*/
2
  section>[data-testid="block-container"]{
3
  height: 100vh;
4
- padding: 2em 3em 2em 3em;
5
  }
 
1
  /* Contenedor principal de la aplicación*/
2
  section>[data-testid="block-container"]{
3
  height: 100vh;
 
4
  }