Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -158,7 +158,7 @@ def predict_inverse(hardness_original_target, ys_original_target, request: gr.Re
|
|
158 |
constraints.append({'name': constraint + "-1", 'constraint': '-1*(' + sum_string + ')+1'})
|
159 |
|
160 |
|
161 |
-
def fit_outputs(x):
|
162 |
return fit_outputs_constraints(x, hardness_target, ys_target, request)
|
163 |
|
164 |
opt = GPyOpt.methods.BayesianOptimization(f = fit_outputs, # function to optimize
|
|
|
158 |
constraints.append({'name': constraint + "-1", 'constraint': '-1*(' + sum_string + ')+1'})
|
159 |
|
160 |
|
161 |
+
def fit_outputs(x, request):
|
162 |
return fit_outputs_constraints(x, hardness_target, ys_target, request)
|
163 |
|
164 |
opt = GPyOpt.methods.BayesianOptimization(f = fit_outputs, # function to optimize
|