Spaces:
Runtime error
Runtime error
bthndmn12
commited on
Commit
•
7bc59eb
1
Parent(s):
0a65b5f
fixed bugs
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import torch
|
|
3 |
import numpy as np
|
4 |
from transformers import AutoModel
|
5 |
from transformers import SamModel, SamConfig, SamProcessor
|
|
|
6 |
|
7 |
|
8 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
3 |
import numpy as np
|
4 |
from transformers import AutoModel
|
5 |
from transformers import SamModel, SamConfig, SamProcessor
|
6 |
+
from PIL import Image
|
7 |
|
8 |
|
9 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|