Skip to content

Commit

Permalink
fix: LoadPrompts - invalid opiton handling of text_data_opt
Browse files Browse the repository at this point in the history
  • Loading branch information
ltdrdata committed Jul 30, 2024
1 parent c90d6c8 commit cf9bae0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import importlib

version_code = [0, 82, 5]
version_code = [0, 82, 6]
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
print(f"### Loading: ComfyUI-Inspire-Pack ({version_str})")

Expand Down
4 changes: 2 additions & 2 deletions inspire/prompt_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def doit(prompt_file, text_data_opt=None):

prompts = []
try:
if text_data_opt is None:
if not text_data_opt:
with open(prompt_path, "r", encoding="utf-8") as file:
prompt_data = file.read()
else:
Expand Down Expand Up @@ -182,7 +182,7 @@ def doit(prompt_file, index, text_data_opt=None):

prompts = []
try:
if text_data_opt is None:
if not text_data_opt:
with open(prompt_path, "r", encoding="utf-8") as file:
prompt_data = file.read()
else:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui-inspire-pack"
description = "This extension provides various nodes to support Lora Block Weight and the Impact Pack. Provides many easily applicable regional features and applications for Variation Seed."
version = "0.82.5"
version = "0.82.6"
license = "LICENSE"
dependencies = ["matplotlib", "cachetools"]

Expand Down

0 comments on commit cf9bae0

Please sign in to comment.