ruidanwang commited on
Commit
18c00a7
·
verified ·
1 Parent(s): 7c6628f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ model = load_learner("model.pkl")
11
  # Define an image classification function
12
  def classify_image(image):
13
  # Preprocess the image
14
- image = Image.open(image).resize((192, 192))
15
 
16
  # Make a prediction
17
  prediction = model.predict(image)[0]
 
11
  # Define an image classification function
12
  def classify_image(image):
13
  # Preprocess the image
14
+ image = Image.create(image).resize((192, 192))
15
 
16
  # Make a prediction
17
  prediction = model.predict(image)[0]