Spaces:
Paused
Paused
Update app.py
Browse files
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 = '
|
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)
|