runaksh commited on
Commit
f335b44
·
verified ·
1 Parent(s): 6db0f0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ feature_extractor = ViTFeatureExtractor.from_pretrained("google/vit-base-patch16
11
 
12
  def classify_image(image):
13
  # Convert the PIL Image to a format compatible with the feature extractor
14
- image_pneumonia = np.array(image)
15
  # Preprocess the image and prepare it for the model
16
  inputs_pneumonia = feature_extractor(images=image, return_tensors="pt")
17
  # Make prediction
 
11
 
12
  def classify_image(image):
13
  # Convert the PIL Image to a format compatible with the feature extractor
14
+ image = np.array(image)
15
  # Preprocess the image and prepare it for the model
16
  inputs_pneumonia = feature_extractor(images=image, return_tensors="pt")
17
  # Make prediction