akameswa commited on
Commit
47b1faf
1 Parent(s): 7c18622

[bug] reduce min steps to 2

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ def interpolate_images(img1, img2, num_steps):
26
  return interpolated_images
27
 
28
  def interpolate_and_display(img1, img2, num_steps):
29
- interpolated_images = interpolate_images(img1, img2, num_steps)
30
  return interpolated_images
31
 
32
  # Create the Gradio interface
@@ -35,7 +35,7 @@ iface = gr.Interface(
35
  inputs=[
36
  gr.Image(type="filepath", label="Image A"),
37
  gr.Image(type="filepath", label="Image B"),
38
- gr.Slider(minimum=2, maximum=10, step=1, label="Number of interpolation steps")
39
  ],
40
  outputs=gr.Gallery(label="Interpolated Images"),
41
  title="Image Interpolation",
 
26
  return interpolated_images
27
 
28
  def interpolate_and_display(img1, img2, num_steps):
29
+ interpolated_images = interpolate_images(img1, img2, num_steps+2)
30
  return interpolated_images
31
 
32
  # Create the Gradio interface
 
35
  inputs=[
36
  gr.Image(type="filepath", label="Image A"),
37
  gr.Image(type="filepath", label="Image B"),
38
+ gr.Slider(minimum=0, maximum=10, step=1, label="Number of interpolation steps")
39
  ],
40
  outputs=gr.Gallery(label="Interpolated Images"),
41
  title="Image Interpolation",