fffiloni commited on
Commit
87d5ed1
·
verified ·
1 Parent(s): 8497704

Update gradio_ui.py

Browse files
Files changed (1) hide show
  1. gradio_ui.py +1 -2
gradio_ui.py CHANGED
@@ -199,8 +199,7 @@ def process_image(image_path: str,
199
  # Accelerator Setting
200
  accelerator = Accelerator(
201
  mixed_precision=mixed_precision,
202
- device="cuda"
203
- )
204
 
205
  weight_dtype = torch.float32
206
  if accelerator.mixed_precision == "fp16":
 
199
  # Accelerator Setting
200
  accelerator = Accelerator(
201
  mixed_precision=mixed_precision,
202
+ ).to("cuda")
 
203
 
204
  weight_dtype = torch.float32
205
  if accelerator.mixed_precision == "fp16":