Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,9 @@ from PIL import Image
|
|
3 |
import tempfile
|
4 |
import torch
|
5 |
from torchvision.io import read_image
|
6 |
-
from transformers import ViTForImageClassification, ViTFeatureExtractor,ViTImageProcessor
|
7 |
|
8 |
-
# With ViTImageProcessor we
|
9 |
# model = ViTImageProcessor.from_pretrained('SeyedAli/Food-Image-Classification-VIT')
|
10 |
|
11 |
model = ViTForImageClassification.from_pretrained('SeyedAli/Food-Image-Classification-VIT')
|
|
|
3 |
import tempfile
|
4 |
import torch
|
5 |
from torchvision.io import read_image
|
6 |
+
from transformers import ViTForImageClassification, ViTFeatureExtractor,ViTImageProcessor
|
7 |
|
8 |
+
# With ViTImageProcessor we have error so i comment it
|
9 |
# model = ViTImageProcessor.from_pretrained('SeyedAli/Food-Image-Classification-VIT')
|
10 |
|
11 |
model = ViTForImageClassification.from_pretrained('SeyedAli/Food-Image-Classification-VIT')
|