Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -131,6 +131,49 @@ with gr.Blocks(css='''
|
|
131 |
background: linear-gradient(to right, #E0FFFF, #FF6347, #F0E68C);
|
132 |
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
|
133 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
''') as demo:
|
135 |
|
136 |
with gr.Row():
|
@@ -140,7 +183,7 @@ with gr.Blocks(css='''
|
|
140 |
""")
|
141 |
|
142 |
with gr.Row():
|
143 |
-
mood = gr.Textbox(label="Mood")
|
144 |
flavor_association = gr.CheckboxGroup(label="Flavor Association", choices=["Fruity", "Herbal", "Spicy", "Floral", "Nutty", "Woody", "Earthy"])
|
145 |
drinking_experience = gr.CheckboxGroup(label="Drinking Experience", choices=["Refreshing", "Warming", "Comforting", "Energizing", "Relaxing"])
|
146 |
|
|
|
131 |
background: linear-gradient(to right, #E0FFFF, #FF6347, #F0E68C);
|
132 |
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
|
133 |
}
|
134 |
+
.mood-input {
|
135 |
+
background: linear-gradient(21deg, #10abff, #1beabd);
|
136 |
+
padding: 3px;
|
137 |
+
display: inline-block;
|
138 |
+
border-radius: 9999em;
|
139 |
+
position: relative;
|
140 |
+
font-size: 1.5em;
|
141 |
+
}
|
142 |
+
|
143 |
+
.mood-input input {
|
144 |
+
position: relative;
|
145 |
+
display: inherit;
|
146 |
+
border-radius: inherit;
|
147 |
+
margin: 0;
|
148 |
+
border: none;
|
149 |
+
outline: none;
|
150 |
+
padding: 0 .325em;
|
151 |
+
z-index: 1;
|
152 |
+
}
|
153 |
+
|
154 |
+
.mood-input input:focus + span {
|
155 |
+
opacity: 1;
|
156 |
+
transform: scale(1);
|
157 |
+
}
|
158 |
+
|
159 |
+
.mood-input span {
|
160 |
+
transform: scale(.993, .94);
|
161 |
+
transition: transform .5s, opacity .25s;
|
162 |
+
opacity: 0;
|
163 |
+
position: absolute;
|
164 |
+
z-index: 0;
|
165 |
+
margin: 4px;
|
166 |
+
left: 0;
|
167 |
+
top: 0;
|
168 |
+
right: 0;
|
169 |
+
bottom: 0;
|
170 |
+
border-radius: inherit;
|
171 |
+
pointer-events: none;
|
172 |
+
box-shadow: inset 0 0 0 3px #fff,
|
173 |
+
0 0 0 4px #fff,
|
174 |
+
3px -3px 30px #1beabd,
|
175 |
+
-3px 3px 30px #10abff;
|
176 |
+
}
|
177 |
''') as demo:
|
178 |
|
179 |
with gr.Row():
|
|
|
183 |
""")
|
184 |
|
185 |
with gr.Row():
|
186 |
+
mood = gr.Textbox(label="Mood", elem_classes["mood-input"])
|
187 |
flavor_association = gr.CheckboxGroup(label="Flavor Association", choices=["Fruity", "Herbal", "Spicy", "Floral", "Nutty", "Woody", "Earthy"])
|
188 |
drinking_experience = gr.CheckboxGroup(label="Drinking Experience", choices=["Refreshing", "Warming", "Comforting", "Energizing", "Relaxing"])
|
189 |
|