Update app.py
Browse files
app.py
CHANGED
@@ -16,13 +16,13 @@ def predict_1(SOC: float):
|
|
16 |
return prediction.round(2)
|
17 |
|
18 |
def predict_2(SOC: float, Cy: float):
|
19 |
-
prediction = 2.03 - 0.008*Cy - 0.008*SOC
|
20 |
return prediction.round(2)
|
21 |
|
22 |
def predict_3(SOC: float, Cy: float, eCa: float, eMg: float, eK: float, eAlH: float):
|
23 |
ECEC = eCa + eMg + eK + eNa + eAlH
|
24 |
xK = eK/ECEC
|
25 |
-
prediction = 1.53 - 0.076*SOC + 0.004*Cy - 2.04*xK
|
26 |
return prediction.round(2)
|
27 |
|
28 |
def predict_4(pH: float, EC: float, CCE: float, SOC: float, Sa: float, Si: float,
|
|
|
16 |
return prediction.round(2)
|
17 |
|
18 |
def predict_2(SOC: float, Cy: float):
|
19 |
+
prediction = np.array(2.03 - 0.008*Cy - 0.008*SOC)
|
20 |
return prediction.round(2)
|
21 |
|
22 |
def predict_3(SOC: float, Cy: float, eCa: float, eMg: float, eK: float, eAlH: float):
|
23 |
ECEC = eCa + eMg + eK + eNa + eAlH
|
24 |
xK = eK/ECEC
|
25 |
+
prediction = np.array(1.53 - 0.076*SOC + 0.004*Cy - 2.04*xK)
|
26 |
return prediction.round(2)
|
27 |
|
28 |
def predict_4(pH: float, EC: float, CCE: float, SOC: float, Sa: float, Si: float,
|