Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,7 @@ import numpy as np
|
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
# Load your Keras model from Hugging Face
|
| 7 |
-
|
| 8 |
-
model_path = tf.keras.utils.get_file("Tomato_Models.h5", model_url)
|
| 9 |
-
model = tf.keras.models.load_model(model_path)
|
| 10 |
|
| 11 |
# Customize your label names here based on your model's training
|
| 12 |
class_names = [
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
# Load your Keras model from Hugging Face
|
| 7 |
+
model = pipeline("image-classification", model="wellCh4n/tomato-leaf-disease-classification-vit", top_k=10)
|
|
|
|
|
|
|
| 8 |
|
| 9 |
# Customize your label names here based on your model's training
|
| 10 |
class_names = [
|