charliebaby2023 commited on
Commit
4b0b6eb
·
verified ·
1 Parent(s): 3629275

Update frontend/webui/ui.py

Browse files
Files changed (1) hide show
  1. frontend/webui/ui.py +2 -1
frontend/webui/ui.py CHANGED
@@ -15,7 +15,8 @@ app_settings = get_settings()
15
  model_list = ["model-a", "model-b", "model-c"]
16
 
17
  def update_model_array(text_input):
18
- updated = [line.strip() for line in text_input.split("\n") if line.strip()]
 
19
  return gr.update(choices=updated, value=updated[0] if updated else None), "\n".join(updated)
20
 
21
 
 
15
  model_list = ["model-a", "model-b", "model-c"]
16
 
17
  def update_model_array(text_input):
18
+ model_list.append(text_input)
19
+ updated = model_list
20
  return gr.update(choices=updated, value=updated[0] if updated else None), "\n".join(updated)
21
 
22