Update modelos.py
Browse files- modelos.py +36 -15
modelos.py
CHANGED
|
@@ -33,6 +33,10 @@ url_list = {
|
|
| 33 |
"https://huggingface.co/Carlos2312/models/resolve/main/epicphotogasm_ultimateFidelity.safetensors epicphotogasm_ultimateFidelity.safetensors"],
|
| 34 |
"WildcardxREALNSFWSFW_Hyper (1.5)": [
|
| 35 |
"https://huggingface.co/Carlos2312/models/resolve/main/wildcardxREALNSFWSFW_Hyper.safetensors wildcardxREALNSFWSFW_Hyper.safetensors"],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
"RealDream_14Hyper (1.5)": [
|
| 37 |
"https://huggingface.co/Carlos2312/models/resolve/main/realDream_14Hyper.safetensors realDream_14Hyper.safetensors"],
|
| 38 |
"WildcardxREALNSFWSFW_nsfwSFW (1.5)": [
|
|
@@ -87,37 +91,53 @@ url_list = {
|
|
| 87 |
"https://huggingface.co/Carlos2312/models/resolve/main/realismBYSTABLEYOGI_v4LCM.safetensors realismBYSTABLEYOGI_v4LCM.safetensors"],
|
| 88 |
"SourceOfTheGoddess_003LCM (1.5)": [
|
| 89 |
"https://huggingface.co/Carlos2312/models/resolve/main/sourceOfTheGoddess_003LCM.safetensors sourceOfTheGoddess_003LCM.safetensors"]}
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
|
|
|
|
|
|
| 94 |
|
| 95 |
cb1 = widgets.VBox(
|
| 96 |
[widgets.Checkbox(value=False, description=name, style={'description_width': '0px'})
|
| 97 |
-
for name in
|
| 98 |
cb1.add_class("checkbox-group1")
|
| 99 |
|
| 100 |
cb2 = widgets.VBox(
|
| 101 |
[widgets.Checkbox(value=False, description=name, style={'description_width': '0px'})
|
| 102 |
-
for name in
|
| 103 |
cb2.add_class("checkbox-group2")
|
| 104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
db = widgets.Button(description="Download")
|
| 106 |
db.add_class("download-button")
|
| 107 |
dbo = widgets.Output()
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
gariz3 = """<div class="gradient-cn2">forge</div>"""
|
| 111 |
garis3 = widgets.Output()
|
| 112 |
|
| 113 |
def sa_cb(b):
|
| 114 |
-
for checkbox in cb1.children + cb2.children:
|
| 115 |
checkbox.value = True
|
| 116 |
|
| 117 |
def usa_cb(b):
|
| 118 |
-
for checkbox in cb1.children + cb2.children:
|
| 119 |
checkbox.value = False
|
| 120 |
-
|
| 121 |
sab = widgets.Button(description="Select All")
|
| 122 |
sab.add_class("select-all-button")
|
| 123 |
sab.on_click(sa_cb)
|
|
@@ -133,15 +153,16 @@ bl = widgets.HBox([sab, usab, db, bs])
|
|
| 133 |
boks2 = widgets.VBox([bl, cbc], layout=Layout(
|
| 134 |
display='flex',
|
| 135 |
flex_flow='column',
|
| 136 |
-
width='
|
| 137 |
height='455px',
|
| 138 |
align_items='center',
|
| 139 |
-
padding='10px'
|
|
|
|
| 140 |
boks2.add_class("boks2")
|
| 141 |
-
|
| 142 |
def d_b_click(b):
|
| 143 |
surl = []
|
| 144 |
-
for checkbox, key in zip(cb1.children + cb2.children, list(url_list.keys())):
|
| 145 |
if checkbox.value:
|
| 146 |
surl.extend(url_list[key])
|
| 147 |
|
|
@@ -176,4 +197,4 @@ def d_b_click(b):
|
|
| 176 |
|
| 177 |
tempe()
|
| 178 |
display(boks2, dbo, garis3)
|
| 179 |
-
db.on_click(d_b_click)
|
|
|
|
| 33 |
"https://huggingface.co/Carlos2312/models/resolve/main/epicphotogasm_ultimateFidelity.safetensors epicphotogasm_ultimateFidelity.safetensors"],
|
| 34 |
"WildcardxREALNSFWSFW_Hyper (1.5)": [
|
| 35 |
"https://huggingface.co/Carlos2312/models/resolve/main/wildcardxREALNSFWSFW_Hyper.safetensors wildcardxREALNSFWSFW_Hyper.safetensors"],
|
| 36 |
+
"Realisian_v60 (1.5)": [
|
| 37 |
+
"https://huggingface.co/Carlos2312/models/resolve/main/realisian_v60.safetensors realisian_v60.safetensors"],
|
| 38 |
+
"Moomoofusion_v10 (1.5)": [
|
| 39 |
+
"https://huggingface.co/Carlos2312/models/resolve/main/moomoofusion_v10.safetensors moomoofusion_v10.safetensors"],
|
| 40 |
"RealDream_14Hyper (1.5)": [
|
| 41 |
"https://huggingface.co/Carlos2312/models/resolve/main/realDream_14Hyper.safetensors realDream_14Hyper.safetensors"],
|
| 42 |
"WildcardxREALNSFWSFW_nsfwSFW (1.5)": [
|
|
|
|
| 91 |
"https://huggingface.co/Carlos2312/models/resolve/main/realismBYSTABLEYOGI_v4LCM.safetensors realismBYSTABLEYOGI_v4LCM.safetensors"],
|
| 92 |
"SourceOfTheGoddess_003LCM (1.5)": [
|
| 93 |
"https://huggingface.co/Carlos2312/models/resolve/main/sourceOfTheGoddess_003LCM.safetensors sourceOfTheGoddess_003LCM.safetensors"]}
|
| 94 |
+
|
| 95 |
+
# Split the list into thirds
|
| 96 |
+
list_third = len(url_list) // 3
|
| 97 |
+
third_list_1 = dict(list(url_list.items())[:list_third])
|
| 98 |
+
third_list_2 = dict(list(url_list.items())[list_third:2*list_third])
|
| 99 |
+
third_list_3 = dict(list(url_list.items())[2*list_third:])
|
| 100 |
|
| 101 |
cb1 = widgets.VBox(
|
| 102 |
[widgets.Checkbox(value=False, description=name, style={'description_width': '0px'})
|
| 103 |
+
for name in third_list_1])
|
| 104 |
cb1.add_class("checkbox-group1")
|
| 105 |
|
| 106 |
cb2 = widgets.VBox(
|
| 107 |
[widgets.Checkbox(value=False, description=name, style={'description_width': '0px'})
|
| 108 |
+
for name in third_list_2])
|
| 109 |
cb2.add_class("checkbox-group2")
|
| 110 |
|
| 111 |
+
cb3 = widgets.VBox(
|
| 112 |
+
[widgets.Checkbox(value=False, description=name, style={'description_width': '0px'})
|
| 113 |
+
for name in third_list_3])
|
| 114 |
+
cb3.add_class("checkbox-group3")
|
| 115 |
+
|
| 116 |
db = widgets.Button(description="Download")
|
| 117 |
db.add_class("download-button")
|
| 118 |
dbo = widgets.Output()
|
| 119 |
+
|
| 120 |
+
# Arrange the checkboxes in a grid
|
| 121 |
+
cbc = widgets.GridBox(
|
| 122 |
+
[cb1, cb2, cb3],
|
| 123 |
+
layout=widgets.Layout(
|
| 124 |
+
width='100%',
|
| 125 |
+
grid_template_columns="33% 33% 33%",
|
| 126 |
+
align_items='flex-start'
|
| 127 |
+
)
|
| 128 |
+
)
|
| 129 |
|
| 130 |
gariz3 = """<div class="gradient-cn2">forge</div>"""
|
| 131 |
garis3 = widgets.Output()
|
| 132 |
|
| 133 |
def sa_cb(b):
|
| 134 |
+
for checkbox in cb1.children + cb2.children + cb3.children:
|
| 135 |
checkbox.value = True
|
| 136 |
|
| 137 |
def usa_cb(b):
|
| 138 |
+
for checkbox in cb1.children + cb2.children + cb3.children:
|
| 139 |
checkbox.value = False
|
| 140 |
+
|
| 141 |
sab = widgets.Button(description="Select All")
|
| 142 |
sab.add_class("select-all-button")
|
| 143 |
sab.on_click(sa_cb)
|
|
|
|
| 153 |
boks2 = widgets.VBox([bl, cbc], layout=Layout(
|
| 154 |
display='flex',
|
| 155 |
flex_flow='column',
|
| 156 |
+
width='800px', # Ensure the width is enough for three columns
|
| 157 |
height='455px',
|
| 158 |
align_items='center',
|
| 159 |
+
padding='10px'
|
| 160 |
+
))
|
| 161 |
boks2.add_class("boks2")
|
| 162 |
+
|
| 163 |
def d_b_click(b):
|
| 164 |
surl = []
|
| 165 |
+
for checkbox, key in zip(cb1.children + cb2.children + cb3.children, list(url_list.keys())):
|
| 166 |
if checkbox.value:
|
| 167 |
surl.extend(url_list[key])
|
| 168 |
|
|
|
|
| 197 |
|
| 198 |
tempe()
|
| 199 |
display(boks2, dbo, garis3)
|
| 200 |
+
db.on_click(d_b_click)
|