Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import gradio as gr
|
|
5 |
|
6 |
dataset = load_dataset("beans") # This should be the same as the first line of Python code in this Colab notebook
|
7 |
|
8 |
-
extractor = AutoFeatureExtractor.from_pretrained("
|
9 |
-
model = AutoModelForImageClassification.from_pretrained("
|
10 |
|
11 |
# add to cuda?
|
12 |
model.eval()
|
|
|
5 |
|
6 |
dataset = load_dataset("beans") # This should be the same as the first line of Python code in this Colab notebook
|
7 |
|
8 |
+
extractor = AutoFeatureExtractor.from_pretrained("andresgtn/vit-base-bean-health-classifier")
|
9 |
+
model = AutoModelForImageClassification.from_pretrained("andresgtn/vit-base-bean-health-classifier")
|
10 |
|
11 |
# add to cuda?
|
12 |
model.eval()
|