Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -204,25 +204,7 @@ with gr.Blocks(css=css, theme=gr.themes.Default(font=[gr.themes.GoogleFont("maki
|
|
| 204 |
scheduler_type = gr.Radio(choices=["Euler Ancestral", "DPM++ 2M SDE"], value="Euler Ancestral", label="Scheduler")
|
| 205 |
run = gr.Button("Generate")
|
| 206 |
|
| 207 |
-
#
|
| 208 |
-
loader = gr.HTML(
|
| 209 |
-
'<div id="custom-loader">'
|
| 210 |
-
' <div class="loading-text">'
|
| 211 |
-
' <span style="animation-delay:0s">i</span>'
|
| 212 |
-
' <span style="animation-delay:0.1s">n</span>'
|
| 213 |
-
' <span style="animation-delay:0.2s"> </span>'
|
| 214 |
-
' <span style="animation-delay:0.3s">p</span>'
|
| 215 |
-
' <span style="animation-delay:0.4s">r</span>'
|
| 216 |
-
' <span style="animation-delay:0.5s">o</span>'
|
| 217 |
-
' <span style="animation-delay:0.6s">g</span>'
|
| 218 |
-
' <span style="animation-delay:0.7s">r</span>'
|
| 219 |
-
' <span style="animation-delay:0.8s">e</span>'
|
| 220 |
-
' <span style="animation-delay:0.9s">s</span>'
|
| 221 |
-
' <span style="animation-delay:1.0s">s</span>'
|
| 222 |
-
' </div>'
|
| 223 |
-
' <img src="icon.png" alt="loading icon" />'
|
| 224 |
-
'</div>'
|
| 225 |
-
)
|
| 226 |
gr.HTML(
|
| 227 |
"""
|
| 228 |
<script>
|
|
@@ -257,8 +239,8 @@ window.addEventListener('load', () => {
|
|
| 257 |
<span style="animation-delay:0.8s">e</span>
|
| 258 |
<span style="animation-delay:0.9s">s</span>
|
| 259 |
<span style="animation-delay:1.0s">s</span>
|
|
|
|
| 260 |
</div>
|
| 261 |
-
<img src="icon.png" alt="loading icon" />
|
| 262 |
</div>
|
| 263 |
`;
|
| 264 |
|
|
|
|
| 204 |
scheduler_type = gr.Radio(choices=["Euler Ancestral", "DPM++ 2M SDE"], value="Euler Ancestral", label="Scheduler")
|
| 205 |
run = gr.Button("Generate")
|
| 206 |
|
| 207 |
+
# カスタムローダー
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
gr.HTML(
|
| 209 |
"""
|
| 210 |
<script>
|
|
|
|
| 239 |
<span style="animation-delay:0.8s">e</span>
|
| 240 |
<span style="animation-delay:0.9s">s</span>
|
| 241 |
<span style="animation-delay:1.0s">s</span>
|
| 242 |
+
<img src="icon.png" />
|
| 243 |
</div>
|
|
|
|
| 244 |
</div>
|
| 245 |
`;
|
| 246 |
|