Rodrigo_Cobo commited on
Commit
64360eb
1 Parent(s): 8965f4f

change slider

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
  import gradio as gr
3
 
4
- def update(img):
5
 
6
  if not os.path.exists('temp'):
7
  os.system('mkdir temp')
@@ -12,10 +12,10 @@ def update(img):
12
 
13
  with gr.Blocks() as demo:
14
  gr.Markdown("Start typing below and then click **Run** to see the output.")
15
- slider = gr.Slider(1,15, default = 2, label='StepCycles',step= 1)
16
 
17
  with gr.Row():
18
- inp = 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)
 
1
  import os
2
  import gradio as gr
3
 
4
+ def update(slider, img):
5
 
6
  if not os.path.exists('temp'):
7
  os.system('mkdir temp')
 
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 = [ gr.Slider(1,15, default = 2, label='StepCycles',step= 1),
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)