Upload custom_nodes/comfyui_verseflow/nodes.py
Browse files
custom_nodes/comfyui_verseflow/nodes.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
VerseFlow Studio v5.0 Custom Node for ComfyUI
|
| 3 |
+
Author: XiaoZhe (Commercial Contact: janejulius119@gmail.com / WeChat: julius119)
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
class VerseFlowEngineNode:
|
| 7 |
+
@classmethod
|
| 8 |
+
def INPUT_TYPES(cls):
|
| 9 |
+
return {
|
| 10 |
+
"required": {
|
| 11 |
+
"prompt": ("STRING", {"multiline": True}),
|
| 12 |
+
"scene_type": (["product_demo", "talking_head", "b_roll", "brand_ad"],),
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
RETURN_TYPES = ("STRING",)
|
| 17 |
+
RETURN_NAMES = ("verseflow_task_id",)
|
| 18 |
+
FUNCTION = "dispatch_task"
|
| 19 |
+
CATEGORY = "VerseFlow Studio (By XiaoZhe)"
|
| 20 |
+
|
| 21 |
+
def dispatch_task(self, prompt, scene_type):
|
| 22 |
+
return ("vf_v5_task_1001",)
|
| 23 |
+
|
| 24 |
+
NODE_CLASS_MAPPINGS = {"VerseFlowEngineNode": VerseFlowEngineNode}
|
| 25 |
+
NODE_DISPLAY_NAME_MAPPINGS = {"VerseFlowEngineNode": "VerseFlow v5.0 Engine Node (XiaoZhe)"}
|