Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,7 @@
|
|
1 |
-
from datasets import load_dataset
|
2 |
-
|
3 |
import torch
|
4 |
import gradio as gr
|
5 |
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
6 |
|
7 |
-
dataset = load_dataset("beans")
|
8 |
|
9 |
extractor = AutoFeatureExtractor.from_pretrained("susnato/plant_disease_detection-beans")
|
10 |
model = AutoModelForImageClassification.from_pretrained("susnato/plant_disease_detection-beans")
|
|
|
|
|
|
|
1 |
import torch
|
2 |
import gradio as gr
|
3 |
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
4 |
|
|
|
5 |
|
6 |
extractor = AutoFeatureExtractor.from_pretrained("susnato/plant_disease_detection-beans")
|
7 |
model = AutoModelForImageClassification.from_pretrained("susnato/plant_disease_detection-beans")
|