Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
if-ai authored Nov 15, 2024
1 parent f91ab1d commit 2d32ea9
Show file tree
Hide file tree
Showing 24 changed files with 7,246 additions and 5,221 deletions.
2,228 changes: 1,114 additions & 1,114 deletions IFChatPromptNode.py

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion IFDisplayTextNode.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import sys
import logging
from typing import Optional

# Initialize logger
logger = logging.getLogger(__name__)

class IFDisplayText:
def __init__(self):
Expand Down Expand Up @@ -27,7 +32,11 @@ def INPUT_TYPES(cls):
OUTPUT_NODE = True
CATEGORY = "ImpactFrames💥🎞️"

def display_text(self, text, select):
def display_text(self, text: Optional[str], select):
if text is None:
logger.error("Received None for text input in display_text.")
return "" # Or handle appropriately

print("==================")
print("IF_AI_tool_output:")
print("==================")
Expand Down
Loading

0 comments on commit 2d32ea9

Please sign in to comment.