kevinconka commited on
Commit
5f5664d
·
1 Parent(s): b29c515

Refactor model loading to use device parameter

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -46,8 +46,7 @@ h1 {
46
  }
47
  """
48
 
49
- model = load_model("ahoy-RGB-b2")
50
- model.to("cuda")
51
 
52
  @spaces.GPU
53
  def inference(image):
 
46
  }
47
  """
48
 
49
+ model = load_model("ahoy-RGB-b2", device="cuda")
 
50
 
51
  @spaces.GPU
52
  def inference(image):