LLH commited on
Commit
9636812
·
1 Parent(s): ed1aac2

2024/03/09/18:30

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -2022,7 +2022,7 @@ def reset_select_model_optimize_radio_part_1():
2022
 
2023
 
2024
  def reset_select_model_optimize_radio_part_2():
2025
- # TODO: 默认只有“网格搜索”
2026
  Dataset.choose_optimize = "bayes_search"
2027
 
2028
  return get_return(True)
@@ -2445,16 +2445,16 @@ with gr.Blocks(js="./design/welcome.js", css="./design/custom.css") as demo:
2445
  )
2446
 
2447
  # 数据模型
2448
- # TODO: 有BUG
2449
  select_as_model_radio.change(
2450
  fn=select_as_model,
2451
  inputs=[select_as_model_radio],
2452
  outputs=get_outputs()
2453
  ).then(
2454
- fn=reset_select_model_optimize_radio_part_1(),
2455
  outputs=get_outputs()
2456
  ).then(
2457
- fn=reset_select_model_optimize_radio_part_2(),
2458
  outputs=get_outputs()
2459
  )
2460
 
 
2022
 
2023
 
2024
  def reset_select_model_optimize_radio_part_2():
2025
+ # !默认只有“网格搜索”
2026
  Dataset.choose_optimize = "bayes_search"
2027
 
2028
  return get_return(True)
 
2445
  )
2446
 
2447
  # 数据模型
2448
+ # !有BUG
2449
  select_as_model_radio.change(
2450
  fn=select_as_model,
2451
  inputs=[select_as_model_radio],
2452
  outputs=get_outputs()
2453
  ).then(
2454
+ fn=reset_select_model_optimize_radio_part_1,
2455
  outputs=get_outputs()
2456
  ).then(
2457
+ fn=reset_select_model_optimize_radio_part_2,
2458
  outputs=get_outputs()
2459
  )
2460