JohnJoelMota commited on
Commit
8aa5617
·
verified ·
1 Parent(s): 9065d30

updated output format

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -46,7 +46,8 @@ def predict(image):
46
  predicted_class = class_names[predicted.item()]
47
 
48
  # Format output
49
- return f"Predicted class: {predicted_class} (class number: {predicted.item()})"
 
50
 
51
  # Example images from Hugging Face
52
  examples = [
 
46
  predicted_class = class_names[predicted.item()]
47
 
48
  # Format output
49
+ return f"Predicted class: {predicted_class}"
50
+ return f"Class number: {predicted.item()}"
51
 
52
  # Example images from Hugging Face
53
  examples = [