Update nodes.py

This commit is contained in:
kijai
2024-06-23 14:04:45 +03:00
parent 4d5d45a9d5
commit 698d2cdcbd
+1 -1
View File
@@ -161,7 +161,7 @@ class Florence2Run:
if (task!= 'referring_expression_segmentation' and task!= 'caption_to_phrase_grounding') and text_input:
raise ValueError("Text input (prompt) is only supported for 'referring_expression_segmentation' and 'caption_to_phrase_grounding'")
if text_input is not "":
if text_input != "":
prompt = task_prompt + " " + text_input
else:
prompt = task_prompt