Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@
|
|
| 5 |
# DualVision is a Gradio template app for image processing, developed to
|
| 6 |
# support the Marigold project: https://marigoldcomputervision.github.io
|
| 7 |
|
| 8 |
-
import spaces
|
| 9 |
import gradio as gr
|
| 10 |
from PIL import Image, ImageFilter
|
| 11 |
|
|
@@ -59,7 +58,6 @@ class ImageFiltersApp(DualVisionApp):
|
|
| 59 |
"filter_size": filter_size,
|
| 60 |
}
|
| 61 |
|
| 62 |
-
@spaces.GPU
|
| 63 |
def process(self, image_in: Image.Image, **kwargs):
|
| 64 |
"""
|
| 65 |
Process an input image into multiple modalities using the provided arguments or default settings.
|
|
@@ -87,6 +85,7 @@ with ImageFiltersApp(
|
|
| 87 |
examples_path="examples",
|
| 88 |
examples_per_page=5,
|
| 89 |
squeeze_canvas=True,
|
|
|
|
| 90 |
) as demo:
|
| 91 |
demo.queue(
|
| 92 |
api_open=False,
|
|
|
|
| 5 |
# DualVision is a Gradio template app for image processing, developed to
|
| 6 |
# support the Marigold project: https://marigoldcomputervision.github.io
|
| 7 |
|
|
|
|
| 8 |
import gradio as gr
|
| 9 |
from PIL import Image, ImageFilter
|
| 10 |
|
|
|
|
| 58 |
"filter_size": filter_size,
|
| 59 |
}
|
| 60 |
|
|
|
|
| 61 |
def process(self, image_in: Image.Image, **kwargs):
|
| 62 |
"""
|
| 63 |
Process an input image into multiple modalities using the provided arguments or default settings.
|
|
|
|
| 85 |
examples_path="examples",
|
| 86 |
examples_per_page=5,
|
| 87 |
squeeze_canvas=True,
|
| 88 |
+
spaces_zero_gpu_enabled=True,
|
| 89 |
) as demo:
|
| 90 |
demo.queue(
|
| 91 |
api_open=False,
|