Spaces:
Build error
Build error
updated output format
Browse files
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}
|
|
|
|
| 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 = [
|