Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,6 @@ custom_css = """
|
|
115 |
color: rgb(55, 65, 81) !important;
|
116 |
font-weight: 600 !important;
|
117 |
}
|
118 |
-
|
119 |
.container-wrap {
|
120 |
display: flex !important;
|
121 |
gap: 5px !important;
|
@@ -125,7 +124,7 @@ custom_css = """
|
|
125 |
}
|
126 |
.vert-group {
|
127 |
min-width: 100px !important; /* Increased from 80px */
|
128 |
-
width:
|
129 |
flex: 0 0 auto !important;
|
130 |
}
|
131 |
.vert-group label {
|
@@ -140,7 +139,7 @@ custom_css = """
|
|
140 |
display: inline-block !important;
|
141 |
text-align: center !important;
|
142 |
margin-bottom: 5px !important;
|
143 |
-
padding: 0
|
144 |
}
|
145 |
.vert-group .wrap label {
|
146 |
text-align: center !important;
|
@@ -193,7 +192,6 @@ custom_css = """
|
|
193 |
margin-bottom: 2rem !important;
|
194 |
color: rgba(255, 255, 255, 0.7) !important;
|
195 |
}
|
196 |
-
|
197 |
/* Generate button */
|
198 |
#generate-btn {
|
199 |
background: linear-gradient(90deg, rgb(76, 175, 147), rgb(76, 147, 175)) !important;
|
@@ -204,7 +202,6 @@ custom_css = """
|
|
204 |
font-weight: 600 !important;
|
205 |
transition: transform 0.2s, box-shadow 0.2s !important;
|
206 |
}
|
207 |
-
|
208 |
#generate-btn:hover {
|
209 |
transform: translateY(-2px) !important;
|
210 |
box-shadow: 0 5px 15px rgba(76, 175, 147, 0.3) !important;
|
@@ -230,16 +227,16 @@ with gr.Blocks(css=custom_css, theme="ocean") as demo:
|
|
230 |
# Define slider configurations with emojis
|
231 |
slider_configs = [
|
232 |
("af", "Default 👩🦰"),
|
233 |
-
("af_bella", "Bella
|
234 |
-
("af_sarah", "Sarah
|
235 |
-
("af_nicole", "Nicole
|
236 |
-
("af_sky", "Sky
|
237 |
-
("am_adam", "Adam
|
238 |
-
("am_michael", "Michael
|
239 |
-
("bf_emma", "Emma
|
240 |
-
("bf_isabella", "Isabella
|
241 |
-
("bm_george", "George
|
242 |
-
("bm_lewis", "Lewis
|
243 |
]
|
244 |
|
245 |
# Create columns for each slider
|
|
|
115 |
color: rgb(55, 65, 81) !important;
|
116 |
font-weight: 600 !important;
|
117 |
}
|
|
|
118 |
.container-wrap {
|
119 |
display: flex !important;
|
120 |
gap: 5px !important;
|
|
|
124 |
}
|
125 |
.vert-group {
|
126 |
min-width: 100px !important; /* Increased from 80px */
|
127 |
+
width: 105px !important; /* Increased from 90px */
|
128 |
flex: 0 0 auto !important;
|
129 |
}
|
130 |
.vert-group label {
|
|
|
139 |
display: inline-block !important;
|
140 |
text-align: center !important;
|
141 |
margin-bottom: 5px !important;
|
142 |
+
padding: 0 1px !important; /* Added padding */
|
143 |
}
|
144 |
.vert-group .wrap label {
|
145 |
text-align: center !important;
|
|
|
192 |
margin-bottom: 2rem !important;
|
193 |
color: rgba(255, 255, 255, 0.7) !important;
|
194 |
}
|
|
|
195 |
/* Generate button */
|
196 |
#generate-btn {
|
197 |
background: linear-gradient(90deg, rgb(76, 175, 147), rgb(76, 147, 175)) !important;
|
|
|
202 |
font-weight: 600 !important;
|
203 |
transition: transform 0.2s, box-shadow 0.2s !important;
|
204 |
}
|
|
|
205 |
#generate-btn:hover {
|
206 |
transform: translateY(-2px) !important;
|
207 |
box-shadow: 0 5px 15px rgba(76, 175, 147, 0.3) !important;
|
|
|
227 |
# Define slider configurations with emojis
|
228 |
slider_configs = [
|
229 |
("af", "Default 👩🦰"),
|
230 |
+
("af_bella", "Bella 👩🦰🇺🇸"),
|
231 |
+
("af_sarah", "Sarah 👩🦰🇺🇸"),
|
232 |
+
("af_nicole", "Nicole 👩🦰🇺🇸"),
|
233 |
+
("af_sky", "Sky 👩🦰🇺🇸"),
|
234 |
+
("am_adam", "Adam 👨🇺🇸"),
|
235 |
+
("am_michael", "Michael 👨🇺🇸"),
|
236 |
+
("bf_emma", "Emma 👩🦰🇬🇧"),
|
237 |
+
("bf_isabella", "Isabella 👩🦰🇬🇧"),
|
238 |
+
("bm_george", "George 👨🇬🇧"),
|
239 |
+
("bm_lewis", "Lewis 👨🇬🇧")
|
240 |
]
|
241 |
|
242 |
# Create columns for each slider
|