Spaces:
Sleeping
Sleeping
bharathj16
commited on
Commit
•
a655929
1
Parent(s):
99947f3
Update app.py
Browse files
app.py
CHANGED
@@ -13,4 +13,4 @@ outputs = model(**inputs)
|
|
13 |
logits = outputs.logits
|
14 |
# model predicts one of the 1000 ImageNet classes
|
15 |
predicted_class_idx = logits.argmax(-1).item()
|
16 |
-
print("Predicted class:", model.config.id2label[predicted_class_idx])
|
|
|
13 |
logits = outputs.logits
|
14 |
# model predicts one of the 1000 ImageNet classes
|
15 |
predicted_class_idx = logits.argmax(-1).item()
|
16 |
+
print("Predicted class:", model.config.id2label[predicted_class_idx])
|