Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,35 +131,21 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
| 131 |
|
| 132 |
def progress_bar_html(label: str) -> str:
|
| 133 |
"""
|
| 134 |
-
Returns an HTML snippet for a thin progress bar with a
|
| 135 |
-
The progress bar
|
| 136 |
"""
|
| 137 |
return f'''
|
| 138 |
<div style="display: flex; align-items: center;">
|
| 139 |
<span style="margin-right: 10px; font-size: 14px;">{label}</span>
|
| 140 |
-
<div style="width: 110px; height: 5px; background-color: #
|
| 141 |
-
<div
|
| 142 |
</div>
|
| 143 |
</div>
|
| 144 |
<style>
|
| 145 |
-
@keyframes
|
| 146 |
-
0% {{
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
30% {{ left: 50px; opacity: 1; }}
|
| 150 |
-
40% {{ left: 75px; opacity: 0; }}
|
| 151 |
-
50% {{ left: 90px; opacity: 1; }}
|
| 152 |
-
60% {{ left: 110px; opacity: 0; }}
|
| 153 |
-
100% {{ left: 110px; opacity: 0; }}
|
| 154 |
-
}}
|
| 155 |
-
|
| 156 |
-
.lightning {{
|
| 157 |
-
position: absolute;
|
| 158 |
-
width: 15px;
|
| 159 |
-
height: 5px;
|
| 160 |
-
background-color: #fff;
|
| 161 |
-
clip-path: polygon(50% 0%, 60% 30%, 50% 30%, 60% 60%, 40% 60%, 50% 100%, 30% 70%, 40% 50%, 30% 50%, 40% 30%);
|
| 162 |
-
animation: strike 2s infinite;
|
| 163 |
}}
|
| 164 |
</style>
|
| 165 |
'''
|
|
|
|
| 131 |
|
| 132 |
def progress_bar_html(label: str) -> str:
|
| 133 |
"""
|
| 134 |
+
Returns an HTML snippet for a thin progress bar with a label.
|
| 135 |
+
The progress bar is styled with a cool, frozen "ice breeze" animation.
|
| 136 |
"""
|
| 137 |
return f'''
|
| 138 |
<div style="display: flex; align-items: center;">
|
| 139 |
<span style="margin-right: 10px; font-size: 14px;">{label}</span>
|
| 140 |
+
<div style="width: 110px; height: 5px; background-color: #E0F7FA; border-radius: 2px; overflow: hidden;">
|
| 141 |
+
<div style="width: 100%; height: 100%; background: linear-gradient(270deg, #B3E5FC, #81D4FA, #B3E5FC); background-size: 600% 600%; animation: iceBreeze 2s ease-in-out infinite;"></div>
|
| 142 |
</div>
|
| 143 |
</div>
|
| 144 |
<style>
|
| 145 |
+
@keyframes iceBreeze {{
|
| 146 |
+
0% {{ background-position: 0% 50%; }}
|
| 147 |
+
50% {{ background-position: 100% 50%; }}
|
| 148 |
+
100% {{ background-position: 0% 50%; }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
}}
|
| 150 |
</style>
|
| 151 |
'''
|