Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -231,7 +231,46 @@ with block:
|
|
| 231 |
scale_factor = gr.Number(label="SR Scale", value=4)
|
| 232 |
with gr.Column():
|
| 233 |
result_gallery = gr.Gallery(label="Output", show_label=False, elem_id="gallery")
|
| 234 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 235 |
inputs = [
|
| 236 |
input_image,
|
| 237 |
user_prompt,
|
|
|
|
| 231 |
scale_factor = gr.Number(label="SR Scale", value=4)
|
| 232 |
with gr.Column():
|
| 233 |
result_gallery = gr.Gallery(label="Output", show_label=False, elem_id="gallery")
|
| 234 |
+
examples = gr.Examples(
|
| 235 |
+
examples=[
|
| 236 |
+
[
|
| 237 |
+
"preset/datasets/test_datasets/179.png",
|
| 238 |
+
"",
|
| 239 |
+
True,
|
| 240 |
+
0.1,
|
| 241 |
+
4,
|
| 242 |
+
"clean, high-resolution, 8k, best quality, masterpiece",
|
| 243 |
+
"dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
|
| 244 |
+
50,
|
| 245 |
+
4,
|
| 246 |
+
7.5,
|
| 247 |
+
123,
|
| 248 |
+
320,
|
| 249 |
+
4,
|
| 250 |
+
1,
|
| 251 |
+
],
|
| 252 |
+
|
| 253 |
+
],
|
| 254 |
+
inputs=[
|
| 255 |
+
input_image,
|
| 256 |
+
user_prompt,
|
| 257 |
+
use_KDS,
|
| 258 |
+
bandwidth,
|
| 259 |
+
num_particles,
|
| 260 |
+
positive_prompt,
|
| 261 |
+
negative_prompt,
|
| 262 |
+
num_inference_steps,
|
| 263 |
+
scale_factor,
|
| 264 |
+
cfg_scale,
|
| 265 |
+
seed,
|
| 266 |
+
latent_tiled_size,
|
| 267 |
+
latent_tiled_overlap,
|
| 268 |
+
sample_times,
|
| 269 |
+
],
|
| 270 |
+
outputs=[result_gallery],
|
| 271 |
+
fn=process,
|
| 272 |
+
cache_examples=True,
|
| 273 |
+
)
|
| 274 |
inputs = [
|
| 275 |
input_image,
|
| 276 |
user_prompt,
|