nielsr HF staff commited on
Commit
3267028
1 Parent(s): e9d77ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,9 +9,9 @@ import PIL
9
  from PIL import Image
10
  from typing import Tuple
11
 
12
- net = BriaRMBG()
13
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
  net = BriaRMBG.from_pretrained("briaai/RMBG-1.4")
 
15
  net.to(device)
16
 
17
 
 
9
  from PIL import Image
10
  from typing import Tuple
11
 
12
+
 
13
  net = BriaRMBG.from_pretrained("briaai/RMBG-1.4")
14
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
  net.to(device)
16
 
17