John6666 commited on
Commit
0953761
1 Parent(s): de8ac53

Upload flux.py

Browse files
Files changed (1) hide show
  1. flux.py +2 -2
flux.py CHANGED
@@ -267,7 +267,7 @@ def apply_lora_prompt(lora_info: str):
267
  def update_loras(prompt, lora, lora_wt):
268
  import re
269
  on, label, tag, md = get_lora_info(lora)
270
- prompts = prompt.split(",") if prompt else []
271
  output_prompts = []
272
  for p in prompts:
273
  p = str(p).strip()
@@ -283,7 +283,7 @@ def update_loras(prompt, lora, lora_wt):
283
  output_prompts.append(p)
284
  lora_prompts = []
285
  if on: lora_prompts.append(f"<lora:{to_lora_key(lora)}:{lora_wt:.2f}>")
286
- output_prompt = ", ".join(list_uniq(output_prompts + lora_prompts))
287
  choices = get_all_lora_tupled_list()
288
  return gr.update(value=prompt), gr.update(value=lora, choices=choices), gr.update(value=lora_wt),\
289
  gr.update(value=tag, label=label, visible=on), gr.update(value=md, visible=on)
 
267
  def update_loras(prompt, lora, lora_wt):
268
  import re
269
  on, label, tag, md = get_lora_info(lora)
270
+ """prompts = prompt.split(",") if prompt else []
271
  output_prompts = []
272
  for p in prompts:
273
  p = str(p).strip()
 
283
  output_prompts.append(p)
284
  lora_prompts = []
285
  if on: lora_prompts.append(f"<lora:{to_lora_key(lora)}:{lora_wt:.2f}>")
286
+ output_prompt = ", ".join(list_uniq(output_prompts + lora_prompts))"""
287
  choices = get_all_lora_tupled_list()
288
  return gr.update(value=prompt), gr.update(value=lora, choices=choices), gr.update(value=lora_wt),\
289
  gr.update(value=tag, label=label, visible=on), gr.update(value=md, visible=on)