multimodalart HF staff commited on
Commit
b567979
1 Parent(s): 3f1692f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -168,7 +168,7 @@ def save_preferences(lora_1_id, lora_1_scale, lora_2_id, lora_2_scale, prompt, g
168
  with scheduler.lock:
169
  Image.fromarray(generated_image).save(image_path)
170
  with IMAGE_JSONL_PATH.open("a") as f:
171
- json.dump({"prompt": prompt, "file_name":image_path.name, "lora_1_id": lora_1_id, "lora_1_scale": lora_1_scale, "lora_2_id": lora_2_id, "lora_2_scale": lora_2_scale, "thumbs_direction": thumbs_direction, "seed": int(seed)}, f)
172
  f.write("\n")
173
 
174
  return gr.update(visible=False), gr.update(visible=True), gr.update(interactive=False)
 
168
  with scheduler.lock:
169
  Image.fromarray(generated_image).save(image_path)
170
  with IMAGE_JSONL_PATH.open("a") as f:
171
+ json.dump({"prompt": prompt, "file_name":image_path.name, "lora_1_id": lora_1_id, "lora_1_scale": float(lora_1_scale), "lora_2_id": lora_2_id, "lora_2_scale": float(lora_2_scale), "thumbs_direction": thumbs_direction, "seed": int(seed)}, f)
172
  f.write("\n")
173
 
174
  return gr.update(visible=False), gr.update(visible=True), gr.update(interactive=False)