chimithecat commited on
Commit
a422c68
·
verified ·
1 Parent(s): 6572388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- model_url = "https://huggingface.co/chimithecat/penyakit_tomat/resolve/main/Tomato_Models.h5"
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 = [