Skip to content

Commit

Permalink
settings replacement logic fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kabachuha committed Aug 13, 2023
1 parent ecdbfa1 commit 80b8f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deforum_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,9 @@ async def deforum_run(settings_json:str, allowed_params:str = ""):
deforum_settings = json.loads(settings_json)
with open(os.path.join(pathlib.Path(__file__).parent.absolute(), 'default_settings.txt'), 'r', encoding='utf-8') as f:
default_settings = json.loads(f.read())
for k, v in default_settings.items():
for k, _ in default_settings.items():
if k in deforum_settings and k in allowed_params:
default_settings[k] = v
default_settings[k] = deforum_settings[k]
deforum_settings = default_settings
run_id = uuid.uuid4().hex
deforum_settings['batch_name'] = run_id
Expand Down

0 comments on commit 80b8f5e

Please sign in to comment.