fffiloni commited on
Commit
ffb5c26
·
verified ·
1 Parent(s): 38c5af2

ZeroGPU ready

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
 
3
  import os
@@ -129,7 +130,7 @@ def show_masks(image, masks, scores, point_coords=None, box_coords=None, input_l
129
 
130
  return combined_images, mask_images
131
 
132
-
133
  def sam_process(input_image, checkpoint, tracking_points, trackings_input_label):
134
  image = Image.open(input_image)
135
  image = np.array(image.convert("RGB"))
 
1
+ import spaces
2
  import gradio as gr
3
 
4
  import os
 
130
 
131
  return combined_images, mask_images
132
 
133
+ @spaces.GPU
134
  def sam_process(input_image, checkpoint, tracking_points, trackings_input_label):
135
  image = Image.open(input_image)
136
  image = np.array(image.convert("RGB"))