Spaces:
Runtime error
Runtime error
Commit
·
3ed58f9
1
Parent(s):
a852b94
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import datasets
|
2 |
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
3 |
import gradio as gr
|
|
|
4 |
|
5 |
feature_extractor = AutoFeatureExtractor.from_pretrained("google/vit-base-patch16-224")
|
6 |
dataset = datasets.load_dataset("beans")
|
|
|
1 |
import datasets
|
2 |
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
3 |
import gradio as gr
|
4 |
+
import torch
|
5 |
|
6 |
feature_extractor = AutoFeatureExtractor.from_pretrained("google/vit-base-patch16-224")
|
7 |
dataset = datasets.load_dataset("beans")
|