Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -144,7 +144,6 @@ 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);
|
@@ -153,26 +152,7 @@ footer {
|
|
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 |
}
|
@@ -188,7 +168,6 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
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)
|
|
|
144 |
visibility: hidden;
|
145 |
}
|
146 |
|
|
|
147 |
@keyframes spin {
|
148 |
from {
|
149 |
transform: rotate(0deg);
|
|
|
152 |
transform: rotate(360deg);
|
153 |
}
|
154 |
}
|
155 |
+
textarea[placeholder*="✦︎"]::placeholder {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
display: inline-block;
|
157 |
animation: spin 2s linear infinite;
|
158 |
}
|
|
|
168 |
max_lines=1,
|
169 |
placeholder="✦︎ Enter your prompt",
|
170 |
container=False,
|
|
|
171 |
)
|
172 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
173 |
result = gr.Gallery(label="Result", columns=1, show_label=False, preview=True)
|