Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,7 +96,7 @@ def predict(x, request: gr.Request):
|
|
| 96 |
return (round(y_hardness*(maximum_hardness-minimum_hardness)+minimum_hardness, 2), 12,
|
| 97 |
round(y_ys*(maximum_ys-minimum_ys)+minimum_ys, 2), 12)
|
| 98 |
|
| 99 |
-
def fit_outputs_constraints(x, hardness_target, ys_target,
|
| 100 |
predictions = predict(x, request)
|
| 101 |
error_hardness = np.sqrt(np.square(predictions[0]-float(hardness_target)))
|
| 102 |
error_ys = np.sqrt(np.square(predictions[2]-float(ys_target)))
|
|
|
|
| 96 |
return (round(y_hardness*(maximum_hardness-minimum_hardness)+minimum_hardness, 2), 12,
|
| 97 |
round(y_ys*(maximum_ys-minimum_ys)+minimum_ys, 2), 12)
|
| 98 |
|
| 99 |
+
def fit_outputs_constraints(x, hardness_target, ys_target, request: gr.Request):
|
| 100 |
predictions = predict(x, request)
|
| 101 |
error_hardness = np.sqrt(np.square(predictions[0]-float(hardness_target)))
|
| 102 |
error_ys = np.sqrt(np.square(predictions[2]-float(ys_target)))
|