oreo17 commited on
Commit
5fa5b31
1 Parent(s): 370085b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ def predict_image(img):
6
  prediction=model.predict(img_4d)[0]
7
  return {class_names[i]: float(prediction[i]) for i in range(4)}
8
 
9
- pipe = pipeline(task = 'image-classification', model = "microsoft/beit-base-patch16-224")
10
 
11
  image = gr.inputs.Image(shape=(180,180))
12
  label = gr.outputs.Label(num_top_classes=4)
6
  prediction=model.predict(img_4d)[0]
7
  return {class_names[i]: float(prediction[i]) for i in range(4)}
8
 
9
+ pipe = pipeline(task = 'image-classification', model = "google/vit-base-patch16-224")
10
 
11
  image = gr.inputs.Image(shape=(180,180))
12
  label = gr.outputs.Label(num_top_classes=4)