mrdilaw commited on
Commit
5cc7c4c
·
verified ·
1 Parent(s): 6634469

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ torch.set_float32_matmul_precision("high")
11
  birefnet = AutoModelForImageSegmentation.from_pretrained(
12
  "ZhengPeng7/BiRefNet", trust_remote_code=True
13
  )
14
- birefnet.to("cuda")
15
 
16
  # تجهيز الصورة قبل الإدخال
17
  transform_image = transforms.Compose([
 
11
  birefnet = AutoModelForImageSegmentation.from_pretrained(
12
  "ZhengPeng7/BiRefNet", trust_remote_code=True
13
  )
14
+ birefnet.to("cpu")
15
 
16
  # تجهيز الصورة قبل الإدخال
17
  transform_image = transforms.Compose([