Text-to-Image
Diffusers
Safetensors
English
StableDiffusionXLPipeline
art
Inference Endpoints
KBlueLeaf commited on
Commit
54c0806
1 Parent(s): 75fabe5

Implement image viewer

Browse files
Files changed (1) hide show
  1. README.md +68 -1
README.md CHANGED
@@ -20,7 +20,74 @@ tags:
20
 
21
  ---
22
 
23
- ![banner](https://i.imgur.com/AuSMuRE.png)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  ## Introduction
26
  Kohaku XL Epsilon, the fifth major iteration in the Kohaku XL series, features a 5.2 million images dataset, LyCORIS fine-tuning[1], trained on comsumer-level hardware, and is fully open-sourced.
 
20
 
21
  ---
22
 
23
+ <style>
24
+ .image-viewer {
25
+ position: relative;
26
+ width: 100%;
27
+ margin: 0 auto;
28
+ }
29
+
30
+ .image-viewer input[type="radio"] {
31
+ display: none;
32
+ }
33
+
34
+ .image-viewer label {
35
+ padding: 10px 20px;
36
+ background-color: #B398F5;
37
+ border: 1px solid #ccc;
38
+ cursor: pointer;
39
+ transition: background-color 0.3s ease;
40
+ color: black
41
+ }
42
+
43
+ .image-viewer label:hover {
44
+ background-color: #4C88F5;
45
+ }
46
+
47
+ .image-viewer input[type="radio"]:checked + label {
48
+ background-color: #6296F5;
49
+ }
50
+
51
+ .image-container {
52
+ position: relative;
53
+ width: 100%;
54
+ height: 60vh;
55
+ }
56
+
57
+ .image-container img {
58
+ position: absolute;
59
+ top: 0;
60
+ left: 0;
61
+ height: 100%;
62
+ max-width: 100%;
63
+ object-fit: contain;
64
+ opacity: 0;
65
+ transition: opacity 0.5s ease;
66
+ }
67
+
68
+
69
+ #image1:checked ~ .image-container img:nth-child(1),
70
+ #image2:checked ~ .image-container img:nth-child(2),
71
+ #image3:checked ~ .image-container img:nth-child(3) {
72
+ opacity: 1;
73
+ }
74
+ </style>
75
+ <div class="image-viewer">
76
+ <input type="radio" id="image1" name="image-switcher" checked>
77
+ <label for="image1">1</label>
78
+ <input type="radio" id="image2" name="image-switcher">
79
+ <label for="image2">2</label>
80
+ <input type="radio" id="image3" name="image-switcher">
81
+ <label for="image3">3</label>
82
+
83
+ <div class="image-container">
84
+ <img src="output-samples/01549.png" alt="Image 1">
85
+ <img src="output-samples/01550.png" alt="Image 2">
86
+ <img src="output-samples/01551.png" alt="Image 3">
87
+ </div>
88
+ </div>
89
+
90
+ ---
91
 
92
  ## Introduction
93
  Kohaku XL Epsilon, the fifth major iteration in the Kohaku XL series, features a 5.2 million images dataset, LyCORIS fine-tuning[1], trained on comsumer-level hardware, and is fully open-sourced.