Spaces:
Running
on
Zero
Running
on
Zero
gokaygokay
commited on
Commit
•
9aba168
1
Parent(s):
4624bf0
css
Browse files
app.py
CHANGED
@@ -153,8 +153,8 @@ custom_css = """
|
|
153 |
.submit-btn:hover {
|
154 |
background-color: #3498db !important;
|
155 |
}
|
156 |
-
/*
|
157 |
-
.
|
158 |
-webkit-appearance: none;
|
159 |
width: 100%;
|
160 |
height: 10px;
|
@@ -164,10 +164,10 @@ custom_css = """
|
|
164 |
opacity: 0.7;
|
165 |
transition: opacity .2s;
|
166 |
}
|
167 |
-
.
|
168 |
opacity: 1;
|
169 |
}
|
170 |
-
.
|
171 |
-webkit-appearance: none;
|
172 |
appearance: none;
|
173 |
width: 20px;
|
@@ -176,7 +176,7 @@ custom_css = """
|
|
176 |
background: #2980b9;
|
177 |
cursor: pointer;
|
178 |
}
|
179 |
-
.
|
180 |
width: 20px;
|
181 |
height: 20px;
|
182 |
border-radius: 50%;
|
@@ -194,11 +194,11 @@ with gr.Blocks(theme='bethecloud/storj_theme', css=custom_css) as demo:
|
|
194 |
input_image = gr.Image(label="Input Image (Florence-2 Captioner)", height=512)
|
195 |
|
196 |
with gr.Accordion("Image Settings", open=False):
|
197 |
-
width = gr.Slider(label="Width", minimum=512, maximum=MAX_IMAGE_SIZE, step=32, value=1024)
|
198 |
-
height = gr.Slider(label="Height", minimum=512, maximum=MAX_IMAGE_SIZE, step=32, value=1024)
|
199 |
-
guidance_scale = gr.Slider(label="Guidance Scale", minimum=0.0, maximum=7.5, step=0.1, value=4.5)
|
200 |
-
num_inference_steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=40)
|
201 |
-
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
202 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
203 |
negative_prompt = gr.Textbox(label="Negative Prompt")
|
204 |
|
|
|
153 |
.submit-btn:hover {
|
154 |
background-color: #3498db !important;
|
155 |
}
|
156 |
+
/* Updated styles for sliders */
|
157 |
+
.custom-slider input[type="range"] {
|
158 |
-webkit-appearance: none;
|
159 |
width: 100%;
|
160 |
height: 10px;
|
|
|
164 |
opacity: 0.7;
|
165 |
transition: opacity .2s;
|
166 |
}
|
167 |
+
.custom-slider input[type="range"]:hover {
|
168 |
opacity: 1;
|
169 |
}
|
170 |
+
.custom-slider input[type="range"]::-webkit-slider-thumb {
|
171 |
-webkit-appearance: none;
|
172 |
appearance: none;
|
173 |
width: 20px;
|
|
|
176 |
background: #2980b9;
|
177 |
cursor: pointer;
|
178 |
}
|
179 |
+
.custom-slider input[type="range"]::-moz-range-thumb {
|
180 |
width: 20px;
|
181 |
height: 20px;
|
182 |
border-radius: 50%;
|
|
|
194 |
input_image = gr.Image(label="Input Image (Florence-2 Captioner)", height=512)
|
195 |
|
196 |
with gr.Accordion("Image Settings", open=False):
|
197 |
+
width = gr.Slider(label="Width", minimum=512, maximum=MAX_IMAGE_SIZE, step=32, value=1024, elem_classes="custom-slider")
|
198 |
+
height = gr.Slider(label="Height", minimum=512, maximum=MAX_IMAGE_SIZE, step=32, value=1024, elem_classes="custom-slider")
|
199 |
+
guidance_scale = gr.Slider(label="Guidance Scale", minimum=0.0, maximum=7.5, step=0.1, value=4.5, elem_classes="custom-slider")
|
200 |
+
num_inference_steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=40, elem_classes="custom-slider")
|
201 |
+
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, elem_classes="custom-slider")
|
202 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
203 |
negative_prompt = gr.Textbox(label="Negative Prompt")
|
204 |
|