Yarflam commited on
Commit
4da6292
·
1 Parent(s): a2ed7af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import os
6
  max_img_wh = 4096 # Set the maximum image size in pixels
7
 
8
  def inference(image, use_gpu):
9
- gpu_ids = 'cuda' if use_gpu else ''
10
  model = ModelLoader(gpu_ids=gpu_ids, max_img_wh=max_img_wh)
11
  model.load()
12
  output_img = model.inference(image_pil=image)
 
6
  max_img_wh = 4096 # Set the maximum image size in pixels
7
 
8
  def inference(image, use_gpu):
9
+ gpu_ids = '0' if use_gpu else ''
10
  model = ModelLoader(gpu_ids=gpu_ids, max_img_wh=max_img_wh)
11
  model.load()
12
  output_img = model.inference(image_pil=image)