From 698d2cdcbd203133e96e8ab667b98484a13f869c Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sun, 23 Jun 2024 14:04:45 +0300 Subject: [PATCH] Update nodes.py --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 478619f..fee7003 100644 --- a/nodes.py +++ b/nodes.py @@ -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