Spaces:
Sleeping
Sleeping
riyadifirman
commited on
Commit
•
2a01cbf
1
Parent(s):
20115ca
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import torch
|
|
3 |
from transformers import AutoImageProcessor, AutoModelForImageClassification
|
4 |
from torchvision.transforms import Compose, Resize, ToTensor, Normalize, RandomHorizontalFlip, RandomRotation
|
5 |
from PIL import Image
|
|
|
6 |
import traceback
|
7 |
|
8 |
# Load dataset to get labels
|
|
|
3 |
from transformers import AutoImageProcessor, AutoModelForImageClassification
|
4 |
from torchvision.transforms import Compose, Resize, ToTensor, Normalize, RandomHorizontalFlip, RandomRotation
|
5 |
from PIL import Image
|
6 |
+
from datasets import load_dataset
|
7 |
import traceback
|
8 |
|
9 |
# Load dataset to get labels
|