Spaces:
Build error
Build error
Commit ·
a94aa20
1
Parent(s): 296cd14
Update app.py
Browse files
app.py
CHANGED
|
@@ -218,32 +218,30 @@ Imagen = gr.Interface(
|
|
| 218 |
#theme='Taithrah/Minimal'
|
| 219 |
)
|
| 220 |
|
| 221 |
-
|
| 222 |
Tabla1 = gr.Interface(
|
| 223 |
fn= cargar_dataframe_1,
|
| 224 |
-
inputs=gr.
|
| 225 |
-
|
| 226 |
-
label="Mas detalles"
|
| 227 |
),
|
| 228 |
-
#inputs="number",
|
| 229 |
live=True,
|
| 230 |
-
outputs=
|
|
|
|
|
|
|
| 231 |
#gr.Textbox(label="Total kcal")],
|
| 232 |
description="Desglose de los alimentos y sus calorías, así como recuento total.",
|
| 233 |
)
|
| 234 |
-
'''
|
| 235 |
-
with gr.Blocks() as Tabla1:
|
| 236 |
-
inp = gr.Textbox(placeholder="What is your name?")
|
| 237 |
-
out = "dataframe"
|
| 238 |
-
inp.change(cargar_dataframe_1, inp, out)
|
| 239 |
-
|
| 240 |
|
| 241 |
Tabla2 = gr.Interface(
|
| 242 |
-
fn=cargar_dataframe_3,
|
| 243 |
-
inputs=gr.
|
|
|
|
|
|
|
| 244 |
live=True,
|
| 245 |
-
outputs=
|
| 246 |
-
|
|
|
|
|
|
|
| 247 |
#outputs = gr.Textbox(label="Total kcal"),
|
| 248 |
description="Desglose de los alimentos y sus calorías, así como recuento total.",
|
| 249 |
)
|
|
|
|
| 218 |
#theme='Taithrah/Minimal'
|
| 219 |
)
|
| 220 |
|
| 221 |
+
|
| 222 |
Tabla1 = gr.Interface(
|
| 223 |
fn= cargar_dataframe_1,
|
| 224 |
+
inputs = gr.Dropdown(
|
| 225 |
+
["Desayuno", "Almuerzo", "Comida", "Merienda", "Cena"], label="Comida", info="Comida del día"
|
|
|
|
| 226 |
),
|
|
|
|
| 227 |
live=True,
|
| 228 |
+
outputs=gr.Dataframe(
|
| 229 |
+
headers=["Alimentos", "Ración(g)", "Kcal/Ración(g)"],
|
| 230 |
+
),
|
| 231 |
#gr.Textbox(label="Total kcal")],
|
| 232 |
description="Desglose de los alimentos y sus calorías, así como recuento total.",
|
| 233 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
|
| 235 |
Tabla2 = gr.Interface(
|
| 236 |
+
fn=cargar_dataframe_3,
|
| 237 |
+
inputs = gr.Dropdown(
|
| 238 |
+
["Desayuno", "Almuerzo", "Comida", "Merienda", "Cena"], label="Comida", info="Comida del día"
|
| 239 |
+
),
|
| 240 |
live=True,
|
| 241 |
+
outputs=gr.Dataframe(
|
| 242 |
+
headers=["Alimentos", "Ración(g)", "Kcal/Ración(g)"],
|
| 243 |
+
),
|
| 244 |
+
#outputs="dataframe",
|
| 245 |
#outputs = gr.Textbox(label="Total kcal"),
|
| 246 |
description="Desglose de los alimentos y sus calorías, así como recuento total.",
|
| 247 |
)
|