Update app.py
Browse files
app.py
CHANGED
@@ -50,38 +50,36 @@ with gr.Blocks() as demo:
|
|
50 |
with gr.Row():
|
51 |
with gr.Column():
|
52 |
gr.Markdown("**M.O. (%)**")
|
53 |
-
SOC = gr.Number(label="", value=2.9408, interactive=True, elem_classes="bold-label"
|
54 |
gr.Markdown("**K<sup>+</sup> (meq/100g)**")
|
55 |
-
eK = gr.Number(label="", value=0.47, interactive=True
|
56 |
gr.Markdown("**pH (1:1) en H<sub>2</sub>O**")
|
57 |
-
pH = gr.Number(label="", value=7.09, interactive=True
|
58 |
gr.Markdown("**C.E. (1:1 dS/m)**")
|
59 |
-
EC = gr.Number(label="", value=0.31, interactive=True
|
|
|
|
|
60 |
|
61 |
with gr.Column():
|
62 |
gr.Markdown("**Arcilla (%)**")
|
63 |
-
Cy = gr.Number(label="", value=31.0, interactive=True
|
64 |
gr.Markdown("**Na<sup>+</sup> (meq/100g)**")
|
65 |
-
eNa = gr.Number(label="", value=0.15, interactive=True
|
66 |
gr.Markdown("**CaCO<sub>2</sub> (%)**")
|
67 |
-
CCE = gr.Number(label="", value=0.20, interactive=True
|
|
|
|
|
68 |
|
69 |
|
70 |
with gr.Column():
|
71 |
gr.Markdown("**Ca<sup>2+</sup> (meq/100g)**")
|
72 |
-
eCa = gr.Number(label="", value=19.44, interactive=True
|
73 |
gr.Markdown("**Al<sup>3+</sup> + H<sup>+</sup> (meq/100g)**")
|
74 |
-
eAlH = gr.Number(label="", value=0.0, interactive=True
|
75 |
gr.Markdown("**Limo (%)**")
|
76 |
-
Si = gr.Number(label="", value=24.0, interactive=True
|
77 |
-
|
78 |
-
with gr.Column():
|
79 |
-
gr.Markdown("**Mg<sup>2+</sup> (meq/100g)**")
|
80 |
-
eMg = gr.Number(label="", value=3.47, interactive=True, min_width=100)
|
81 |
-
gr.Markdown("**Arena (%)**")
|
82 |
-
Sa = gr.Number(label="", value=45.0, interactive=True, min_width=100)
|
83 |
gr.Markdown("**CIC (meq/100g)**")
|
84 |
-
CEC = gr.Number(label="", value=23.52, interactive=True
|
85 |
|
86 |
with gr.Row():
|
87 |
with gr.Column():
|
@@ -90,7 +88,7 @@ with gr.Blocks() as demo:
|
|
90 |
submit_2 = gr.Button(value='Benites')
|
91 |
with gr.Column():
|
92 |
submit_3 = gr.Button(value='MLRegression')
|
93 |
-
|
94 |
submit_4 = gr.Button(value='Random Forest')
|
95 |
|
96 |
output = gr.Textbox(label="Densidad aparente del suelo (g/cm3).", interactive=False)
|
|
|
50 |
with gr.Row():
|
51 |
with gr.Column():
|
52 |
gr.Markdown("**M.O. (%)**")
|
53 |
+
SOC = gr.Number(label="", value=2.9408, interactive=True, elem_classes="bold-label")
|
54 |
gr.Markdown("**K<sup>+</sup> (meq/100g)**")
|
55 |
+
eK = gr.Number(label="", value=0.47, interactive=True)
|
56 |
gr.Markdown("**pH (1:1) en H<sub>2</sub>O**")
|
57 |
+
pH = gr.Number(label="", value=7.09, interactive=True)
|
58 |
gr.Markdown("**C.E. (1:1 dS/m)**")
|
59 |
+
EC = gr.Number(label="", value=0.31, interactive=True)
|
60 |
+
gr.Markdown("**Mg<sup>2+</sup> (meq/100g)**")
|
61 |
+
eMg = gr.Number(label="", value=3.47, interactive=True)
|
62 |
|
63 |
with gr.Column():
|
64 |
gr.Markdown("**Arcilla (%)**")
|
65 |
+
Cy = gr.Number(label="", value=31.0, interactive=True)
|
66 |
gr.Markdown("**Na<sup>+</sup> (meq/100g)**")
|
67 |
+
eNa = gr.Number(label="", value=0.15, interactive=True)
|
68 |
gr.Markdown("**CaCO<sub>2</sub> (%)**")
|
69 |
+
CCE = gr.Number(label="", value=0.20, interactive=True)
|
70 |
+
gr.Markdown("**Arena (%)**")
|
71 |
+
Sa = gr.Number(label="", value=45.0, interactive=True)
|
72 |
|
73 |
|
74 |
with gr.Column():
|
75 |
gr.Markdown("**Ca<sup>2+</sup> (meq/100g)**")
|
76 |
+
eCa = gr.Number(label="", value=19.44, interactive=True)
|
77 |
gr.Markdown("**Al<sup>3+</sup> + H<sup>+</sup> (meq/100g)**")
|
78 |
+
eAlH = gr.Number(label="", value=0.0, interactive=True)
|
79 |
gr.Markdown("**Limo (%)**")
|
80 |
+
Si = gr.Number(label="", value=24.0, interactive=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
gr.Markdown("**CIC (meq/100g)**")
|
82 |
+
CEC = gr.Number(label="", value=23.52, interactive=True)
|
83 |
|
84 |
with gr.Row():
|
85 |
with gr.Column():
|
|
|
88 |
submit_2 = gr.Button(value='Benites')
|
89 |
with gr.Column():
|
90 |
submit_3 = gr.Button(value='MLRegression')
|
91 |
+
with gr.Row():
|
92 |
submit_4 = gr.Button(value='Random Forest')
|
93 |
|
94 |
output = gr.Textbox(label="Densidad aparente del suelo (g/cm3).", interactive=False)
|