comfy: add a trailing comma to prompts, retry status checks with error handling

This commit is contained in:
Kasisnu
2024-06-05 18:21:14 +05:30
parent e641702ac3
commit 9053889139
2 changed files with 16 additions and 11 deletions
+2 -2
View File
@@ -301,9 +301,9 @@ def get_jsonpath_mods(style_mods: Dict[str, Any], mapping_json: Dict[str, Any],
# Handling positive and negative prompts
if pos_in:
new_mod_json["positive_prompt"] = f"{new_mod_json.get('positive_prompt', '')}, {pos_in}"
new_mod_json["positive_prompt"] = f"{pos_in}, {new_mod_json.get('positive_prompt', '')},"
if neg_in:
new_mod_json["negative_prompt"] = f"{new_mod_json.get('negative_prompt', '')}, {neg_in}"
new_mod_json["negative_prompt"] = f"{neg_in}, {new_mod_json.get('negative_prompt', '')},"
for key, value in new_mod_json.items():
mapping_key = f"$.{key}"