Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ effnetb2, effnetb2_transforms = create_effnetb2_model(
|
|
17 |
effnetb2.load_state_dict(
|
18 |
torch.load(
|
19 |
f="Cat_Breed_Classifier_12_class_90_acc.pth",
|
20 |
-
map_location=torch.device("cpu"),
|
21 |
)
|
22 |
)
|
23 |
|
@@ -33,8 +33,8 @@ def predict(img):
|
|
33 |
pred_time = round(timer() - start_time, 5)
|
34 |
return pred_labels_and_probs, pred_time
|
35 |
|
36 |
-
title = "Cat Breed Classifier Demo
|
37 |
-
description = "<p style='text-align: center'>Gradio Demo for Classifying Cat Breeds of these <a href='https://huggingface.co/'>
|
38 |
article = "</br><p style='text-align: center'><a href='https://github.com/Mr-Hexi' target='_blank'>GitHub</a></br></p> "
|
39 |
|
40 |
|
|
|
17 |
effnetb2.load_state_dict(
|
18 |
torch.load(
|
19 |
f="Cat_Breed_Classifier_12_class_90_acc.pth",
|
20 |
+
map_location=torch.device("cpu"),
|
21 |
)
|
22 |
)
|
23 |
|
|
|
33 |
pred_time = round(timer() - start_time, 5)
|
34 |
return pred_labels_and_probs, pred_time
|
35 |
|
36 |
+
title = "Cat Breed Classifier Demo 🐱"
|
37 |
+
description = "<p style='text-align: center'>Gradio Demo for Classifying Cat Breeds of these <a href='https://huggingface.co/spaces/Hexii/Cat-Breed-Classifier/blob/main/classes.txt'>12 different types.<a></p>"
|
38 |
article = "</br><p style='text-align: center'><a href='https://github.com/Mr-Hexi' target='_blank'>GitHub</a></br></p> "
|
39 |
|
40 |
|