Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = "
|
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)
|