Spaces:
Sleeping
Sleeping
Commit
•
3f1692f
1
Parent(s):
864446c
Update app.py
Browse files
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":
|
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": 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)
|