Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import torchvision.transforms as transforms
|
|
| 10 |
from PIL import Image
|
| 11 |
|
| 12 |
evice = torch.device('cpu')
|
| 13 |
-
model = tag2text(pretrained='tag2text.pth', image_size=384, vit='swin_b')
|
| 14 |
model.threshold = 0.68
|
| 15 |
model.eval()
|
| 16 |
|
|
|
|
| 10 |
from PIL import Image
|
| 11 |
|
| 12 |
evice = torch.device('cpu')
|
| 13 |
+
model = tag2text(pretrained='./tag2text.pth', image_size=384, vit='swin_b')
|
| 14 |
model.threshold = 0.68
|
| 15 |
model.eval()
|
| 16 |
|