snajmark commited on
Commit
980e558
·
1 Parent(s): d2a82e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=1)
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 = [420, 1020]
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