huzey commited on
Commit
cf75ded
·
1 Parent(s): d245991
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -141,20 +141,20 @@ def ncut_run(
141
  return to_pil_images(rgb), [], logging_str
142
 
143
  @spaces.GPU(duration=10)
144
- def quick_run(*args, **kwargs):
145
- return ncut_run(*args, **kwargs)
146
 
147
  @spaces.GPU(duration=30)
148
- def long_run(*args, **kwargs):
149
- return ncut_run(*args, **kwargs)
150
 
151
  @spaces.GPU(duration=60)
152
- def longer_run(*args, **kwargs):
153
- return ncut_run(*args, **kwargs)
154
 
155
  @spaces.GPU(duration=120)
156
- def super_duper_long_run(*args, **kwargs):
157
- return ncut_run(*args, **kwargs)
158
 
159
  def run_fn(
160
  images,
@@ -173,7 +173,7 @@ def run_fn(
173
  min_dist=0.1,
174
  ):
175
  if images is None:
176
- return [], example_items
177
 
178
  kwargs = {
179
  "images": images,
 
141
  return to_pil_images(rgb), [], logging_str
142
 
143
  @spaces.GPU(duration=10)
144
+ def quick_run(images, **kwargs):
145
+ return ncut_run(images, **kwargs)
146
 
147
  @spaces.GPU(duration=30)
148
+ def long_run(images, **kwargs):
149
+ return ncut_run(images, **kwargs)
150
 
151
  @spaces.GPU(duration=60)
152
+ def longer_run(images, **kwargs):
153
+ return ncut_run(images, **kwargs)
154
 
155
  @spaces.GPU(duration=120)
156
+ def super_duper_long_run(images, **kwargs):
157
+ return ncut_run(images, **kwargs)
158
 
159
  def run_fn(
160
  images,
 
173
  min_dist=0.1,
174
  ):
175
  if images is None:
176
+ return [], example_items, "No images selected."
177
 
178
  kwargs = {
179
  "images": images,