alexnasa commited on
Commit
9300410
·
verified ·
1 Parent(s): e794d57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(duration=160)
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 = "",