Benjamin Auquite commited on
Commit
57e66eb
·
verified ·
1 Parent(s): 8e436bb

Run preprocess in ZeroGPU context

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -368,6 +368,7 @@ def end_session(req: gr.Request):
368
  shutil.rmtree(user_dir)
369
 
370
 
 
371
  def preprocess_image(input: Image.Image) -> Image.Image:
372
  """
373
  Preprocess the input image.
 
368
  shutil.rmtree(user_dir)
369
 
370
 
371
+ @spaces.GPU(duration=120)
372
  def preprocess_image(input: Image.Image) -> Image.Image:
373
  """
374
  Preprocess the input image.