akshayka commited on
Commit
bf1a819
·
verified ·
1 Parent(s): 41164c9
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,7 +82,7 @@ def __(efficient_seam_carve, input_image, mo, slider):
82
 
83
 
84
  @app.cell
85
- def __():
86
  import numpy as np
87
  from numba import jit
88
  from skimage import io, filters, transform
@@ -149,7 +149,7 @@ def __():
149
 
150
  return image
151
 
152
-
153
  def efficient_seam_carve(image_path, scale_factor):
154
  img = io.imread(image_path)
155
  new_width = int(img.shape[1] * scale_factor)
 
82
 
83
 
84
  @app.cell
85
+ def __(mo):
86
  import numpy as np
87
  from numba import jit
88
  from skimage import io, filters, transform
 
149
 
150
  return image
151
 
152
+ @mo.cache
153
  def efficient_seam_carve(image_path, scale_factor):
154
  img = io.imread(image_path)
155
  new_width = int(img.shape[1] * scale_factor)