Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -178,7 +178,7 @@ def preprocess_image(input_image: Image.Image) -> Image.Image:
|
|
| 178 |
img.thumbnail((512, 512), Image.Resampling.BILINEAR)
|
| 179 |
return img
|
| 180 |
|
| 181 |
-
@spaces.GPU()
|
| 182 |
def preprocess_n_magnify(input_image: Image.Image, progress=gr.Progress(track_tqdm=True),):
|
| 183 |
"""
|
| 184 |
Preprocess the input image and perform a single-step 4× magnification using the SeeSR pipeline.
|
|
@@ -201,7 +201,7 @@ def preprocess_n_magnify(input_image: Image.Image, progress=gr.Progress(track_tq
|
|
| 201 |
|
| 202 |
return (img, magnified_img)
|
| 203 |
|
| 204 |
-
@spaces.GPU(
|
| 205 |
def magnify(
|
| 206 |
input_image: Image.Image,
|
| 207 |
user_prompt = "",
|
|
|
|
| 178 |
img.thumbnail((512, 512), Image.Resampling.BILINEAR)
|
| 179 |
return img
|
| 180 |
|
| 181 |
+
@spaces.GPU(duration=160)
|
| 182 |
def preprocess_n_magnify(input_image: Image.Image, progress=gr.Progress(track_tqdm=True),):
|
| 183 |
"""
|
| 184 |
Preprocess the input image and perform a single-step 4× magnification using the SeeSR pipeline.
|
|
|
|
| 201 |
|
| 202 |
return (img, magnified_img)
|
| 203 |
|
| 204 |
+
@spaces.GPU()
|
| 205 |
def magnify(
|
| 206 |
input_image: Image.Image,
|
| 207 |
user_prompt = "",
|