Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def predict_and_show(image):
|
|
33 |
outputs = vgg16(image_tensor)
|
34 |
_, predicted = torch.max(outputs.data, 1)
|
35 |
|
36 |
-
class_names = ["
|
37 |
predicted_label = class_names[predicted.item()]
|
38 |
|
39 |
plt.imshow(image)
|
|
|
33 |
outputs = vgg16(image_tensor)
|
34 |
_, predicted = torch.max(outputs.data, 1)
|
35 |
|
36 |
+
class_names = ["Classic", "Modern", "Vintage", "Glamour", "Scandinavian", "Rustic", "ArtDeco", "Industrial"]
|
37 |
predicted_label = class_names[predicted.item()]
|
38 |
|
39 |
plt.imshow(image)
|