Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -143,6 +143,39 @@ h1 {
|
|
143 |
footer {
|
144 |
visibility: hidden;
|
145 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
'''
|
147 |
|
148 |
# Gradio interface
|
@@ -155,6 +188,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
155 |
max_lines=1,
|
156 |
placeholder="✦︎ Enter your prompt",
|
157 |
container=False,
|
|
|
158 |
)
|
159 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
160 |
result = gr.Gallery(label="Result", columns=1, show_label=False, preview=True)
|
|
|
143 |
footer {
|
144 |
visibility: hidden;
|
145 |
}
|
146 |
+
|
147 |
+
/* Spinning animation for the star symbol in the placeholder */
|
148 |
+
@keyframes spin {
|
149 |
+
from {
|
150 |
+
transform: rotate(0deg);
|
151 |
+
}
|
152 |
+
to {
|
153 |
+
transform: rotate(360deg);
|
154 |
+
}
|
155 |
+
}
|
156 |
+
|
157 |
+
/* Apply animation to the placeholder text */
|
158 |
+
.prompt-input::placeholder {
|
159 |
+
color: #000;
|
160 |
+
opacity: 1;
|
161 |
+
}
|
162 |
+
|
163 |
+
/* Target the star symbol specifically using a pseudo-element */
|
164 |
+
.prompt-input::-webkit-input-placeholder::before {
|
165 |
+
content: "✦︎ ";
|
166 |
+
display: inline-block;
|
167 |
+
animation: spin 2s linear infinite;
|
168 |
+
}
|
169 |
+
.prompt-input::-moz-placeholder::before {
|
170 |
+
content: "✦︎ ";
|
171 |
+
display: inline-block;
|
172 |
+
animation: spin 2s linear infinite;
|
173 |
+
}
|
174 |
+
.prompt-input:-ms-input-placeholder::before {
|
175 |
+
content: "✦︎ ";
|
176 |
+
display: inline-block;
|
177 |
+
animation: spin 2s linear infinite;
|
178 |
+
}
|
179 |
'''
|
180 |
|
181 |
# Gradio interface
|
|
|
188 |
max_lines=1,
|
189 |
placeholder="✦︎ Enter your prompt",
|
190 |
container=False,
|
191 |
+
elem_classes="prompt-input",
|
192 |
)
|
193 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
194 |
result = gr.Gallery(label="Result", columns=1, show_label=False, preview=True)
|