jovian commited on
Commit
de18998
·
1 Parent(s): 257e912
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ from sahi import AutoDetectionModel
6
  from PIL import Image
7
  import plotly.graph_objects as go
8
  import torch
9
- import spaces
10
 
11
  import os
12
  import shutil
@@ -332,7 +332,7 @@ def upload_image(image):
332
  """Process the uploaded image (if needed) and display it."""
333
  return image
334
 
335
- @spaces.GPU
336
  def apply_detection(image,slice_width_input,slice_height_input,overlap_width_input,overlap_height_input):
337
  """Run object detection on the uploaded image and return the annotated image."""
338
  # Convert image from PIL to NumPy array
 
6
  from PIL import Image
7
  import plotly.graph_objects as go
8
  import torch
9
+ #import spaces
10
 
11
  import os
12
  import shutil
 
332
  """Process the uploaded image (if needed) and display it."""
333
  return image
334
 
335
+ #@spaces.GPU
336
  def apply_detection(image,slice_width_input,slice_height_input,overlap_width_input,overlap_height_input):
337
  """Run object detection on the uploaded image and return the annotated image."""
338
  # Convert image from PIL to NumPy array