ironjr commited on
Commit
29a19b1
1 Parent(s): cbcc7c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -292,7 +292,7 @@ def change_neg_prompt(state, neg_prompt):
292
 
293
 
294
  def import_state(state, json_text):
295
- prev_state_dict = {k: v in vars(state).items() if k in opt.excluded_keys}
296
  state_dict = json.loads(json_text)
297
  for k in opt.excluded_keys:
298
  if k in state_dict:
 
292
 
293
 
294
  def import_state(state, json_text):
295
+ prev_state_dict = {k: v for k, v in vars(state).items() if k in opt.excluded_keys}
296
  state_dict = json.loads(json_text)
297
  for k in opt.excluded_keys:
298
  if k in state_dict: