@@ -106,7 +106,25 @@ def ElementaryCA(pixels: Any, args: Any, width: int, height: int) -> Any:
106
106
width /= 4
107
107
height /= 4
108
108
if args .filelink in ["False" , "" ]:
109
- rules : List = [26 , 19 , 23 , 25 , 35 , 106 , 11 , 110 , 45 , 41 , 105 , 54 , 3 , 15 , 9 , 154 , 142 ]
109
+ rules : List = [
110
+ 26 ,
111
+ 19 ,
112
+ 23 ,
113
+ 25 ,
114
+ 35 ,
115
+ 106 ,
116
+ 11 ,
117
+ 110 ,
118
+ 45 ,
119
+ 41 ,
120
+ 105 ,
121
+ 54 ,
122
+ 3 ,
123
+ 15 ,
124
+ 9 ,
125
+ 154 ,
126
+ 142 ,
127
+ ]
110
128
111
129
if not args .int_function == "snap" :
112
130
ruleprompt = input (
@@ -208,9 +226,7 @@ def UploadImg(img: str) -> str:
208
226
link : str = output ["data" ]["link" ]
209
227
return link
210
228
except FileNotFoundError :
211
- print (
212
- f"{ '---' * 15 } \n '{ img } ' not usable!\n Please find a proper image to use this script!\n { '---' * 15 } "
213
- )
229
+ print (f"{ '---' * 15 } \n '{ img } ' not usable!\n { '---' * 15 } " )
214
230
exit ()
215
231
216
232
@@ -1275,10 +1291,14 @@ def main():
1275
1291
size0 , size1 = thanos_img .size
1276
1292
for y in ProgressBars (size1 , "The end is near..." ):
1277
1293
for x in range (size0 ):
1278
- ImgPixels (thanos_img , x , y , sorted_pixels if preset_true else pixels )
1294
+ ImgPixels (
1295
+ thanos_img , x , y , sorted_pixels if preset_true else pixels
1296
+ )
1279
1297
thanos_img .save ("images/thanos_img.png" )
1280
1298
print ("I am... inevitable..." )
1281
- sorted_pixels = interval_function (intervals if preset_true else pixels , __args , internet )
1299
+ sorted_pixels = interval_function (
1300
+ intervals if preset_true else pixels , __args , internet
1301
+ )
1282
1302
else :
1283
1303
sorted_pixels = interval_function (pixels , __args , internet )
1284
1304
else :
@@ -1332,7 +1352,7 @@ def main():
1332
1352
f'Args: { (arg_parse_input if arg_parse_input is not None else "No args" )} \n '
1333
1353
f'Sorted on: { date_time } \n \n Sorted image: { link } \n { (35 * "-" )} '
1334
1354
)
1335
-
1355
+
1336
1356
print ("Uploading to DB..." )
1337
1357
dbURL = "https://pixelsorting-a289.restdb.io/rest/outputs"
1338
1358
payload = dumps (
0 commit comments