radames commited on
Commit
94ba234
1 Parent(s): 23688d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  from gradio_imageslider import ImageSlider
3
  import torch
@@ -76,7 +77,7 @@ def pad_image(image):
76
  new_image.paste(image, (pad_w, 0))
77
  return new_image
78
 
79
-
80
  def predict(
81
  input_image,
82
  prompt,
 
1
+ import spaces
2
  import gradio as gr
3
  from gradio_imageslider import ImageSlider
4
  import torch
 
77
  new_image.paste(image, (pad_w, 0))
78
  return new_image
79
 
80
+ @spaces.GPU
81
  def predict(
82
  input_image,
83
  prompt,