-
Notifications
You must be signed in to change notification settings - Fork 5
/
nodes_misc.py
51 lines (39 loc) · 1.34 KB
/
nodes_misc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import torch
class TextBox1:
@classmethod
def INPUT_TYPES(s):
return {"required":
{
"text1": ("STRING", {"default": "", "multiline": True}),
},
"optional":
{
}
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("text1",)
FUNCTION = "main"
CATEGORY = "sampling/custom_sampling/samplers"
DESCRIPTION = "Multiline textbox."
def main(self, text1):
return (text1,)
class TextBox3:
@classmethod
def INPUT_TYPES(s):
return {"required":
{
"text1": ("STRING", {"default": "", "multiline": True}),
"text2": ("STRING", {"default": "", "multiline": True}),
"text3": ("STRING", {"default": "", "multiline": True}),
},
"optional":
{
}
}
RETURN_TYPES = ("STRING", "STRING","STRING",)
RETURN_NAMES = ("text1", "text2", "text3",)
FUNCTION = "main"
CATEGORY = "sampling/custom_sampling/samplers"
DESCRIPTION = "Multiline textbox."
def main(self, text1, text2, text3 ):
return (text1, text2, text3, )