Spaces:
Running
on
Zero
Running
on
Zero
fix args
Browse files
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(
|
145 |
-
return ncut_run(
|
146 |
|
147 |
@spaces.GPU(duration=30)
|
148 |
-
def long_run(
|
149 |
-
return ncut_run(
|
150 |
|
151 |
@spaces.GPU(duration=60)
|
152 |
-
def longer_run(
|
153 |
-
return ncut_run(
|
154 |
|
155 |
@spaces.GPU(duration=120)
|
156 |
-
def super_duper_long_run(
|
157 |
-
return ncut_run(
|
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,
|