Spaces:
Sleeping
Sleeping
Updates
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
pipe = pipeline("image-classification", model="ombhojane/healthyPlantsModel")
|
6 |
|
7 |
def predict_disease(image):
|
8 |
"""Predicts the disease of a plant from an image.
|
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
pipe = pipeline("image-classification", model="ombhojane/healthyPlantsModel", backend="pytorch")
|
6 |
|
7 |
def predict_disease(image):
|
8 |
"""Predicts the disease of a plant from an image.
|