Spaces:
Running on Zero
Running on Zero
update app ✅
#1
by
prithivMLmods - opened
app.py
CHANGED
|
@@ -256,6 +256,19 @@ with gr.Blocks() as demo:
|
|
| 256 |
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
|
| 257 |
steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
|
| 258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
run_button.click(
|
| 260 |
fn=infer,
|
| 261 |
inputs=[images, prompt, seed, randomize_seed, guidance_scale, steps],
|
|
|
|
| 256 |
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
|
| 257 |
steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
|
| 258 |
|
| 259 |
+
gr.Examples(
|
| 260 |
+
examples=[
|
| 261 |
+
[["examples/1.jpg"], "Convert it to black and white. Apply a vintage Polaroid effect with subtle aging and film grain, and add a watermark that says 'Generated by HF'."],
|
| 262 |
+
[["examples/2.jpg"], "Transform the image into a dotted cartoon style."],
|
| 263 |
+
[["examples/3.jpg"], "Convert it to black and white."],
|
| 264 |
+
],
|
| 265 |
+
inputs=[images, prompt],
|
| 266 |
+
outputs=[output_image, seed],
|
| 267 |
+
fn=infer_example,
|
| 268 |
+
cache_examples=False,
|
| 269 |
+
label="Examples"
|
| 270 |
+
)
|
| 271 |
+
|
| 272 |
run_button.click(
|
| 273 |
fn=infer,
|
| 274 |
inputs=[images, prompt, seed, randomize_seed, guidance_scale, steps],
|