Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,9 @@ import PIL
|
|
9 |
from PIL import Image
|
10 |
from typing import Tuple
|
11 |
|
12 |
-
|
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 |
|