Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|