Spaces:
Paused
Paused
Commit ·
68fc434
1
Parent(s): 476ca9b
fix dockerfile
Browse files
program/Fooocus/modules/config.py
CHANGED
|
@@ -371,7 +371,7 @@ available_aspect_ratios = [add_ratio(x) for x in available_aspect_ratios]
|
|
| 371 |
|
| 372 |
# Only write config in the first launch.
|
| 373 |
if not os.path.exists(config_path):
|
| 374 |
-
with open(config_path, "w", encoding="utf-8") as json_file:
|
| 375 |
json.dump({k: config_dict[k] for k in always_save_keys}, json_file, indent=4)
|
| 376 |
|
| 377 |
|
|
|
|
| 371 |
|
| 372 |
# Only write config in the first launch.
|
| 373 |
if not os.path.exists(config_path):
|
| 374 |
+
with open(config_path, "w+", encoding="utf-8") as json_file:
|
| 375 |
json.dump({k: config_dict[k] for k in always_save_keys}, json_file, indent=4)
|
| 376 |
|
| 377 |
|