Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ torch.set_float32_matmul_precision(["high", "highest"][0])
|
|
| 12 |
birefnet = AutoModelForImageSegmentation.from_pretrained(
|
| 13 |
"ZhengPeng7/BiRefNet", trust_remote_code=True
|
| 14 |
)
|
| 15 |
-
birefnet.to("
|
| 16 |
|
| 17 |
transform_image = transforms.Compose(
|
| 18 |
[
|
|
|
|
| 12 |
birefnet = AutoModelForImageSegmentation.from_pretrained(
|
| 13 |
"ZhengPeng7/BiRefNet", trust_remote_code=True
|
| 14 |
)
|
| 15 |
+
birefnet.to("cpu")
|
| 16 |
|
| 17 |
transform_image = transforms.Compose(
|
| 18 |
[
|