Rodrigo_Cobo
commited on
Commit
·
0a1c1a2
1
Parent(s):
64360eb
change slider
Browse files
app.py
CHANGED
|
@@ -12,10 +12,10 @@ def update(slider, img):
|
|
| 12 |
|
| 13 |
with gr.Blocks() as demo:
|
| 14 |
gr.Markdown("Start typing below and then click **Run** to see the output.")
|
|
|
|
| 15 |
|
| 16 |
with gr.Row():
|
| 17 |
-
inp
|
| 18 |
-
gr.Image(type="pil", label="Input")]
|
| 19 |
out = gr.Image(type="file", label="Output")
|
| 20 |
btn = gr.Button("Run")
|
| 21 |
btn.click(fn=update, inputs=inp, outputs=out)
|
|
|
|
| 12 |
|
| 13 |
with gr.Blocks() as demo:
|
| 14 |
gr.Markdown("Start typing below and then click **Run** to see the output.")
|
| 15 |
+
inp = [gr.Slider(1,15, default = 2, label='StepCycles',step= 1)]
|
| 16 |
|
| 17 |
with gr.Row():
|
| 18 |
+
inp.append(gr.Image(type="pil", label="Input"))
|
|
|
|
| 19 |
out = gr.Image(type="file", label="Output")
|
| 20 |
btn = gr.Button("Run")
|
| 21 |
btn.click(fn=update, inputs=inp, outputs=out)
|