Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -194,7 +194,7 @@ def predict_inverse(hardness_target, ys_target, formula, request: gr.Request):
|
|
194 |
acquisition_type ='LCB', # LCB acquisition
|
195 |
acquisition_weight = 0.1) # Exploration exploitation
|
196 |
# it may take a few seconds
|
197 |
-
opt.run_optimization(max_iter=
|
198 |
opt.plot_convergence()
|
199 |
x_best = opt.X[np.argmin(opt.Y)]
|
200 |
best_params = dict(zip(
|
@@ -216,7 +216,7 @@ def predict_inverse(hardness_target, ys_target, formula, request: gr.Request):
|
|
216 |
return list(result.keys())[2:]
|
217 |
|
218 |
|
219 |
-
example_inputs = [
|
220 |
|
221 |
css_styling = """#submit {background: #1eccd8}
|
222 |
submit {color: white}
|
@@ -278,7 +278,7 @@ with gr.Blocks(css=css_styling, title=page_title) as demo:
|
|
278 |
# output_interpretation = gr.Plot(label="Interpretation")
|
279 |
|
280 |
with gr.Row():
|
281 |
-
gr.Examples([example_inputs], [input_hardness, input_yield_strength])
|
282 |
|
283 |
|
284 |
|
|
|
194 |
acquisition_type ='LCB', # LCB acquisition
|
195 |
acquisition_weight = 0.1) # Exploration exploitation
|
196 |
# it may take a few seconds
|
197 |
+
opt.run_optimization(max_iter=20)
|
198 |
opt.plot_convergence()
|
199 |
x_best = opt.X[np.argmin(opt.Y)]
|
200 |
best_params = dict(zip(
|
|
|
216 |
return list(result.keys())[2:]
|
217 |
|
218 |
|
219 |
+
example_inputs = ["Al0.25 Co1 Fe1 Ni1", 820, 1800]
|
220 |
|
221 |
css_styling = """#submit {background: #1eccd8}
|
222 |
submit {color: white}
|
|
|
278 |
# output_interpretation = gr.Plot(label="Interpretation")
|
279 |
|
280 |
with gr.Row():
|
281 |
+
gr.Examples([example_inputs], [formula, input_hardness, input_yield_strength])
|
282 |
|
283 |
|
284 |
|