akhaliq HF Staff commited on
Commit
f178567
·
verified ·
1 Parent(s): 3379736

Upload index.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +923 -19
index.html CHANGED
@@ -1,19 +1,923 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>ComfyUI Workflow</title>
7
+ <style>
8
+ body {
9
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
10
+ background-color: #1e1e1e;
11
+ color: #d4d4d4;
12
+ margin: 0;
13
+ padding: 20px;
14
+ line-height: 1.4;
15
+ }
16
+ .header {
17
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
18
+ color: white;
19
+ padding: 20px;
20
+ border-radius: 10px;
21
+ margin-bottom: 20px;
22
+ text-align: center;
23
+ }
24
+ .header h1 {
25
+ margin: 0;
26
+ font-size: 2em;
27
+ }
28
+ .header a {
29
+ color: #ffffff;
30
+ text-decoration: none;
31
+ font-weight: bold;
32
+ opacity: 0.9;
33
+ }
34
+ .header a:hover {
35
+ opacity: 1;
36
+ text-decoration: underline;
37
+ }
38
+ .json-container {
39
+ background-color: #2d2d30;
40
+ border-radius: 8px;
41
+ padding: 20px;
42
+ overflow-x: auto;
43
+ border: 1px solid #3e3e42;
44
+ }
45
+ pre {
46
+ margin: 0;
47
+ white-space: pre-wrap;
48
+ word-wrap: break-word;
49
+ }
50
+ .json-key {
51
+ color: #9cdcfe;
52
+ }
53
+ .json-string {
54
+ color: #ce9178;
55
+ }
56
+ .json-number {
57
+ color: #b5cea8;
58
+ }
59
+ .json-boolean {
60
+ color: #569cd6;
61
+ }
62
+ .json-null {
63
+ color: #569cd6;
64
+ }
65
+ .copy-btn {
66
+ background: #007acc;
67
+ color: white;
68
+ border: none;
69
+ padding: 10px 20px;
70
+ border-radius: 5px;
71
+ cursor: pointer;
72
+ margin-bottom: 10px;
73
+ font-family: inherit;
74
+ }
75
+ .copy-btn:hover {
76
+ background: #005a9e;
77
+ }
78
+ .download-btn {
79
+ background: #28a745;
80
+ color: white;
81
+ border: none;
82
+ padding: 10px 20px;
83
+ border-radius: 5px;
84
+ cursor: pointer;
85
+ margin-bottom: 10px;
86
+ margin-left: 10px;
87
+ font-family: inherit;
88
+ }
89
+ .download-btn:hover {
90
+ background: #218838;
91
+ }
92
+ </style>
93
+ </head>
94
+ <body>
95
+ <div class="header">
96
+ <h1>ComfyUI Workflow</h1>
97
+ <p>Built with <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank">anycoder</a></p>
98
+ </div>
99
+
100
+ <button class="copy-btn" onclick="copyToClipboard()">📋 Copy JSON</button>
101
+ <button class="download-btn" onclick="downloadJSON()">💾 Download JSON</button>
102
+
103
+ <div class="json-container">
104
+ <pre id="json-content">{
105
+ "last_node_id": 15,
106
+ "last_link_id": 20,
107
+ "nodes": [
108
+ {
109
+ "id": 1,
110
+ "type": "LoadImage",
111
+ "pos": [
112
+ 50,
113
+ 100
114
+ ],
115
+ "size": [
116
+ 320,
117
+ 314
118
+ ],
119
+ "flags": {},
120
+ "order": 0,
121
+ "mode": 0,
122
+ "outputs": [
123
+ {
124
+ "name": "IMAGE",
125
+ "type": "IMAGE",
126
+ "links": [
127
+ 1
128
+ ],
129
+ "slot_index": 0
130
+ },
131
+ {
132
+ "name": "MASK",
133
+ "type": "MASK",
134
+ "links": null
135
+ }
136
+ ],
137
+ "properties": {
138
+ "Node name for S&R": "LoadImage"
139
+ },
140
+ "widgets_values": [
141
+ "input_photo.png",
142
+ "image"
143
+ ]
144
+ },
145
+ {
146
+ "id": 2,
147
+ "type": "CheckpointLoaderSimple",
148
+ "pos": [
149
+ 50,
150
+ 450
151
+ ],
152
+ "size": [
153
+ 350,
154
+ 100
155
+ ],
156
+ "flags": {},
157
+ "order": 1,
158
+ "mode": 0,
159
+ "outputs": [
160
+ {
161
+ "name": "MODEL",
162
+ "type": "MODEL",
163
+ "links": [
164
+ 2
165
+ ],
166
+ "slot_index": 0
167
+ },
168
+ {
169
+ "name": "CLIP",
170
+ "type": "CLIP",
171
+ "links": [
172
+ 3
173
+ ],
174
+ "slot_index": 1
175
+ },
176
+ {
177
+ "name": "VAE",
178
+ "type": "VAE",
179
+ "links": [
180
+ 4
181
+ ],
182
+ "slot_index": 2
183
+ }
184
+ ],
185
+ "properties": {
186
+ "Node name for S&R": "CheckpointLoaderSimple"
187
+ },
188
+ "widgets_values": [
189
+ "Qwen-Image-Edit-2509.safetensors"
190
+ ]
191
+ },
192
+ {
193
+ "id": 3,
194
+ "type": "LoraLoader",
195
+ "pos": [
196
+ 450,
197
+ 450
198
+ ],
199
+ "size": [
200
+ 350,
201
+ 126
202
+ ],
203
+ "flags": {},
204
+ "order": 2,
205
+ "mode": 0,
206
+ "inputs": [
207
+ {
208
+ "name": "model",
209
+ "type": "MODEL",
210
+ "link": 2
211
+ },
212
+ {
213
+ "name": "clip",
214
+ "type": "CLIP",
215
+ "link": 3
216
+ }
217
+ ],
218
+ "outputs": [
219
+ {
220
+ "name": "MODEL",
221
+ "type": "MODEL",
222
+ "links": [
223
+ 5
224
+ ],
225
+ "slot_index": 0
226
+ },
227
+ {
228
+ "name": "CLIP",
229
+ "type": "CLIP",
230
+ "links": [
231
+ 6
232
+ ],
233
+ "slot_index": 1
234
+ }
235
+ ],
236
+ "properties": {
237
+ "Node name for S&R": "LoraLoader"
238
+ },
239
+ "widgets_values": [
240
+ "Qwen-Image-Edit-2509-Photo-to-Anime_000001000.safetensors",
241
+ 1.0,
242
+ 1.0
243
+ ]
244
+ },
245
+ {
246
+ "id": 4,
247
+ "type": "VAEEncode",
248
+ "pos": [
249
+ 450,
250
+ 100
251
+ ],
252
+ "size": [
253
+ 210,
254
+ 46
255
+ ],
256
+ "flags": {},
257
+ "order": 3,
258
+ "mode": 0,
259
+ "inputs": [
260
+ {
261
+ "name": "pixels",
262
+ "type": "IMAGE",
263
+ "link": 1
264
+ },
265
+ {
266
+ "name": "vae",
267
+ "type": "VAE",
268
+ "link": 4
269
+ }
270
+ ],
271
+ "outputs": [
272
+ {
273
+ "name": "LATENT",
274
+ "type": "LATENT",
275
+ "links": [
276
+ 7
277
+ ],
278
+ "slot_index": 0
279
+ }
280
+ ],
281
+ "properties": {
282
+ "Node name for S&R": "VAEEncode"
283
+ }
284
+ },
285
+ {
286
+ "id": 5,
287
+ "type": "CLIPTextEncode",
288
+ "pos": [
289
+ 450,
290
+ 200
291
+ ],
292
+ "size": [
293
+ 400,
294
+ 200
295
+ ],
296
+ "flags": {},
297
+ "order": 4,
298
+ "mode": 0,
299
+ "inputs": [
300
+ {
301
+ "name": "clip",
302
+ "type": "CLIP",
303
+ "link": 6
304
+ }
305
+ ],
306
+ "outputs": [
307
+ {
308
+ "name": "CONDITIONING",
309
+ "type": "CONDITIONING",
310
+ "links": [
311
+ 8
312
+ ],
313
+ "slot_index": 0
314
+ }
315
+ ],
316
+ "properties": {
317
+ "Node name for S&R": "CLIPTextEncode"
318
+ },
319
+ "widgets_values": [
320
+ "Convert this photo to anime style, vibrant colors, detailed anime artwork, high quality anime illustration"
321
+ ]
322
+ },
323
+ {
324
+ "id": 6,
325
+ "type": "CLIPTextEncode",
326
+ "pos": [
327
+ 450,
328
+ 430
329
+ ],
330
+ "size": [
331
+ 400,
332
+ 200
333
+ ],
334
+ "flags": {},
335
+ "order": 5,
336
+ "mode": 0,
337
+ "inputs": [
338
+ {
339
+ "name": "clip",
340
+ "type": "CLIP",
341
+ "link": 6
342
+ }
343
+ ],
344
+ "outputs": [
345
+ {
346
+ "name": "CONDITIONING",
347
+ "type": "CONDITIONING",
348
+ "links": [
349
+ 9
350
+ ],
351
+ "slot_index": 0
352
+ }
353
+ ],
354
+ "properties": {
355
+ "Node name for S&R": "CLIPTextEncode"
356
+ },
357
+ "widgets_values": [
358
+ "low quality, blurry, distorted, photorealistic, ugly, bad anatomy"
359
+ ]
360
+ },
361
+ {
362
+ "id": 7,
363
+ "type": "EmptyLatentImage",
364
+ "pos": [
365
+ 900,
366
+ 100
367
+ ],
368
+ "size": [
369
+ 315,
370
+ 106
371
+ ],
372
+ "flags": {},
373
+ "order": 6,
374
+ "mode": 0,
375
+ "outputs": [
376
+ {
377
+ "name": "LATENT",
378
+ "type": "LATENT",
379
+ "links": [
380
+ 10
381
+ ],
382
+ "slot_index": 0
383
+ }
384
+ ],
385
+ "properties": {
386
+ "Node name for S&R": "EmptyLatentImage"
387
+ },
388
+ "widgets_values": [
389
+ 1024,
390
+ 1024,
391
+ 1
392
+ ]
393
+ },
394
+ {
395
+ "id": 8,
396
+ "type": "KSampler",
397
+ "pos": [
398
+ 900,
399
+ 250
400
+ ],
401
+ "size": [
402
+ 315,
403
+ 474
404
+ ],
405
+ "flags": {},
406
+ "order": 7,
407
+ "mode": 0,
408
+ "inputs": [
409
+ {
410
+ "name": "model",
411
+ "type": "MODEL",
412
+ "link": 5
413
+ },
414
+ {
415
+ "name": "positive",
416
+ "type": "CONDITIONING",
417
+ "link": 8
418
+ },
419
+ {
420
+ "name": "negative",
421
+ "type": "CONDITIONING",
422
+ "link": 9
423
+ },
424
+ {
425
+ "name": "latent_image",
426
+ "type": "LATENT",
427
+ "link": 11
428
+ }
429
+ ],
430
+ "outputs": [
431
+ {
432
+ "name": "LATENT",
433
+ "type": "LATENT",
434
+ "links": [
435
+ 12
436
+ ],
437
+ "slot_index": 0
438
+ }
439
+ ],
440
+ "properties": {
441
+ "Node name for S&R": "KSampler"
442
+ },
443
+ "widgets_values": [
444
+ 42,
445
+ "randomize",
446
+ 4,
447
+ 1.0,
448
+ "euler",
449
+ "normal",
450
+ 0.75
451
+ ]
452
+ },
453
+ {
454
+ "id": 9,
455
+ "type": "LatentUpscale",
456
+ "pos": [
457
+ 900,
458
+ 760
459
+ ],
460
+ "size": [
461
+ 315,
462
+ 130
463
+ ],
464
+ "flags": {},
465
+ "order": 8,
466
+ "mode": 0,
467
+ "inputs": [
468
+ {
469
+ "name": "samples",
470
+ "type": "LATENT",
471
+ "link": 7
472
+ }
473
+ ],
474
+ "outputs": [
475
+ {
476
+ "name": "LATENT",
477
+ "type": "LATENT",
478
+ "links": [
479
+ 11
480
+ ],
481
+ "slot_index": 0
482
+ }
483
+ ],
484
+ "properties": {
485
+ "Node name for S&R": "LatentUpscale"
486
+ },
487
+ "widgets_values": [
488
+ "nearest-exact",
489
+ 1024,
490
+ 1024,
491
+ "disabled"
492
+ ]
493
+ },
494
+ {
495
+ "id": 10,
496
+ "type": "VAEDecode",
497
+ "pos": [
498
+ 1300,
499
+ 250
500
+ ],
501
+ "size": [
502
+ 210,
503
+ 46
504
+ ],
505
+ "flags": {},
506
+ "order": 9,
507
+ "mode": 0,
508
+ "inputs": [
509
+ {
510
+ "name": "samples",
511
+ "type": "LATENT",
512
+ "link": 12
513
+ },
514
+ {
515
+ "name": "vae",
516
+ "type": "VAE",
517
+ "link": 4
518
+ }
519
+ ],
520
+ "outputs": [
521
+ {
522
+ "name": "IMAGE",
523
+ "type": "IMAGE",
524
+ "links": [
525
+ 13
526
+ ],
527
+ "slot_index": 0
528
+ }
529
+ ],
530
+ "properties": {
531
+ "Node name for S&R": "VAEDecode"
532
+ }
533
+ },
534
+ {
535
+ "id": 11,
536
+ "type": "SaveImage",
537
+ "pos": [
538
+ 1300,
539
+ 350
540
+ ],
541
+ "size": [
542
+ 320,
543
+ 270
544
+ ],
545
+ "flags": {},
546
+ "order": 10,
547
+ "mode": 0,
548
+ "inputs": [
549
+ {
550
+ "name": "images",
551
+ "type": "IMAGE",
552
+ "link": 13
553
+ }
554
+ ],
555
+ "properties": {
556
+ "Node name for S&R": "SaveImage"
557
+ },
558
+ "widgets_values": [
559
+ "anime_output"
560
+ ]
561
+ },
562
+ {
563
+ "id": 12,
564
+ "type": "ImageScale",
565
+ "pos": [
566
+ 50,
567
+ 600
568
+ ],
569
+ "size": [
570
+ 315,
571
+ 130
572
+ ],
573
+ "flags": {},
574
+ "order": 11,
575
+ "mode": 0,
576
+ "inputs": [
577
+ {
578
+ "name": "image",
579
+ "type": "IMAGE",
580
+ "link": 1
581
+ }
582
+ ],
583
+ "outputs": [
584
+ {
585
+ "name": "IMAGE",
586
+ "type": "IMAGE",
587
+ "links": [
588
+ 14
589
+ ],
590
+ "slot_index": 0
591
+ }
592
+ ],
593
+ "properties": {
594
+ "Node name for S&R": "ImageScale"
595
+ },
596
+ "widgets_values": [
597
+ "lanczos",
598
+ 1024,
599
+ 1024,
600
+ "disabled"
601
+ ]
602
+ },
603
+ {
604
+ "id": 13,
605
+ "type": "Note",
606
+ "pos": [
607
+ 50,
608
+ 780
609
+ ],
610
+ "size": [
611
+ 400,
612
+ 150
613
+ ],
614
+ "flags": {},
615
+ "order": 12,
616
+ "mode": 0,
617
+ "properties": {
618
+ "text": ""
619
+ },
620
+ "widgets_values": [
621
+ "Photo to Anime Workflow\n\nThis workflow uses Qwen-Image-Edit-2509 with Photo-to-Anime LoRA to transform photos into anime-style images.\n\nBuilt with anycoder - https://huggingface.co/spaces/akhaliq/anycoder"
622
+ ],
623
+ "bgcolor": "#232323"
624
+ },
625
+ {
626
+ "id": 14,
627
+ "type": "BasicScheduler",
628
+ "pos": [
629
+ 1300,
630
+ 650
631
+ ],
632
+ "size": [
633
+ 315,
634
+ 106
635
+ ],
636
+ "flags": {},
637
+ "order": 13,
638
+ "mode": 0,
639
+ "inputs": [
640
+ {
641
+ "name": "model",
642
+ "type": "MODEL",
643
+ "link": 5
644
+ }
645
+ ],
646
+ "outputs": [
647
+ {
648
+ "name": "SIGMAS",
649
+ "type": "SIGMAS",
650
+ "links": [
651
+ 15
652
+ ],
653
+ "slot_index": 0
654
+ }
655
+ ],
656
+ "properties": {
657
+ "Node name for S&R": "BasicScheduler"
658
+ },
659
+ "widgets_values": [
660
+ "normal",
661
+ 4,
662
+ 1.0
663
+ ]
664
+ },
665
+ {
666
+ "id": 15,
667
+ "type": "Note",
668
+ "pos": [
669
+ 1650,
670
+ 100
671
+ ],
672
+ "size": [
673
+ 400,
674
+ 200
675
+ ],
676
+ "flags": {},
677
+ "order": 14,
678
+ "mode": 0,
679
+ "properties": {
680
+ "text": ""
681
+ },
682
+ "widgets_values": [
683
+ "Advanced Settings:\n\n- Guidance Scale: 1.0 (increase for stronger anime effect)\n- Inference Steps: 4 (increase for higher quality)\n- Seed: randomize for variety\n- Height/Width: Auto-calculated based on input\n\nModel: Qwen-Image-Edit-2509\nLoRA: Photo-to-Anime (weight: 1.0)\n\nBuilt with anycoder"
684
+ ],
685
+ "bgcolor": "#353535"
686
+ }
687
+ ],
688
+ "links": [
689
+ [
690
+ 1,
691
+ 1,
692
+ 0,
693
+ 4,
694
+ 0,
695
+ "IMAGE"
696
+ ],
697
+ [
698
+ 2,
699
+ 2,
700
+ 0,
701
+ 3,
702
+ 0,
703
+ "MODEL"
704
+ ],
705
+ [
706
+ 3,
707
+ 2,
708
+ 1,
709
+ 3,
710
+ 1,
711
+ "CLIP"
712
+ ],
713
+ [
714
+ 4,
715
+ 2,
716
+ 2,
717
+ 4,
718
+ 1,
719
+ "VAE"
720
+ ],
721
+ [
722
+ 5,
723
+ 3,
724
+ 0,
725
+ 8,
726
+ 0,
727
+ "MODEL"
728
+ ],
729
+ [
730
+ 6,
731
+ 3,
732
+ 1,
733
+ 5,
734
+ 0,
735
+ "CLIP"
736
+ ],
737
+ [
738
+ 7,
739
+ 4,
740
+ 0,
741
+ 9,
742
+ 0,
743
+ "LATENT"
744
+ ],
745
+ [
746
+ 8,
747
+ 5,
748
+ 0,
749
+ 8,
750
+ 1,
751
+ "CONDITIONING"
752
+ ],
753
+ [
754
+ 9,
755
+ 6,
756
+ 0,
757
+ 8,
758
+ 2,
759
+ "CONDITIONING"
760
+ ],
761
+ [
762
+ 10,
763
+ 7,
764
+ 0,
765
+ 8,
766
+ 3,
767
+ "LATENT"
768
+ ],
769
+ [
770
+ 11,
771
+ 9,
772
+ 0,
773
+ 8,
774
+ 3,
775
+ "LATENT"
776
+ ],
777
+ [
778
+ 12,
779
+ 8,
780
+ 0,
781
+ 10,
782
+ 0,
783
+ "LATENT"
784
+ ],
785
+ [
786
+ 13,
787
+ 10,
788
+ 0,
789
+ 11,
790
+ 0,
791
+ "IMAGE"
792
+ ],
793
+ [
794
+ 14,
795
+ 12,
796
+ 0,
797
+ 4,
798
+ 0,
799
+ "IMAGE"
800
+ ],
801
+ [
802
+ 15,
803
+ 14,
804
+ 0,
805
+ 8,
806
+ 4,
807
+ "SIGMAS"
808
+ ]
809
+ ],
810
+ "groups": [
811
+ {
812
+ "title": "Input Processing",
813
+ "bounding": [
814
+ 25,
815
+ 25,
816
+ 850,
817
+ 730
818
+ ],
819
+ "color": "#3f789e",
820
+ "font_size": 24
821
+ },
822
+ {
823
+ "title": "Generation",
824
+ "bounding": [
825
+ 875,
826
+ 25,
827
+ 375,
828
+ 900
829
+ ],
830
+ "color": "#8A8A8A",
831
+ "font_size": 24
832
+ },
833
+ {
834
+ "title": "Output",
835
+ "bounding": [
836
+ 1275,
837
+ 25,
838
+ 375,
839
+ 730
840
+ ],
841
+ "color": "#a1309b",
842
+ "font_size": 24
843
+ }
844
+ ],
845
+ "config": {},
846
+ "extra": {
847
+ "workflow_metadata": {
848
+ "name": "Photo to Anime Transformation",
849
+ "description": "Transform photos into anime-style images using Qwen-Image-Edit-2509 with Photo-to-Anime LoRA fine-tuning",
850
+ "version": "1.0.0",
851
+ "author": "anycoder",
852
+ "created_with": "https://huggingface.co/spaces/akhaliq/anycoder",
853
+ "models": {
854
+ "checkpoint": "Qwen/Qwen-Image-Edit-2509",
855
+ "lora": "autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime",
856
+ "vae": "AutoencoderKLQwenImage",
857
+ "text_encoder": "Qwen2.5-VL-7B-Instruct"
858
+ },
859
+ "features": [
860
+ "Photo to anime style conversion",
861
+ "LoRA fine-tuning for anime aesthetics",
862
+ "Automatic dimension calculation",
863
+ "High-quality image generation",
864
+ "Customizable guidance scale and steps"
865
+ ],
866
+ "requirements": {
867
+ "diffusers": "latest",
868
+ "transformers": "latest",
869
+ "torch": "2.0+",
870
+ "peft": "latest"
871
+ }
872
+ }
873
+ },
874
+ "version": 0.4
875
+ }</pre>
876
+ </div>
877
+
878
+ <script>
879
+ function copyToClipboard() {
880
+ const jsonContent = document.getElementById('json-content').textContent;
881
+ navigator.clipboard.writeText(jsonContent).then(() => {
882
+ const btn = document.querySelector('.copy-btn');
883
+ const originalText = btn.textContent;
884
+ btn.textContent = '✅ Copied!';
885
+ setTimeout(() => {
886
+ btn.textContent = originalText;
887
+ }, 2000);
888
+ });
889
+ }
890
+
891
+ function downloadJSON() {
892
+ const jsonContent = document.getElementById('json-content').textContent;
893
+ const blob = new Blob([jsonContent], { type: 'application/json' });
894
+ const url = URL.createObjectURL(blob);
895
+ const a = document.createElement('a');
896
+ a.href = url;
897
+ a.download = 'comfyui_workflow.json';
898
+ document.body.appendChild(a);
899
+ a.click();
900
+ document.body.removeChild(a);
901
+ URL.revokeObjectURL(url);
902
+ }
903
+
904
+ // Add syntax highlighting
905
+ function highlightJSON() {
906
+ const content = document.getElementById('json-content');
907
+ let html = content.innerHTML;
908
+
909
+ // Highlight different JSON elements
910
+ html = html.replace(/"([^"]+)":/g, '<span class="json-key">"$1":</span>');
911
+ html = html.replace(/: "([^"]*)"/g, ': <span class="json-string">"$1"</span>');
912
+ html = html.replace(/: (-?\d+\.?\d*)/g, ': <span class="json-number">$1</span>');
913
+ html = html.replace(/: (true|false)/g, ': <span class="json-boolean">$1</span>');
914
+ html = html.replace(/: null/g, ': <span class="json-null">null</span>');
915
+
916
+ content.innerHTML = html;
917
+ }
918
+
919
+ // Apply syntax highlighting after page load
920
+ window.addEventListener('load', highlightJSON);
921
+ </script>
922
+ </body>
923
+ </html>