Spaces:
Runtime error
Runtime error
Update app.py
Browse files48 unmodified lines49505152535455565758596048 unmodified linestop_probs = [round(prob * 100, 2) for _, prob in top_predictions]return {"Original Image": img,"Resized Image": img_resized,"Predicted class using {}: {}".format(model_choice, class_name),"Top 3 Predictions": list(zip(top_classes, top_probs)),"Confidence Scores": predictions[0]}image_input = gr.Image()48 unmodified lines49505152535455565758596048 unmodified linestop_probs = [round(prob * 100, 2) for _, prob in top_predictions]return {"Original Image": img,"Resized Image": img_resized,f"Predicted class using {model_choice}": class_name,"Top 3 Predictions": list(zip(top_classes, top_probs)),"Confidence Scores": predictions[0]}image_input = gr.Image()
app.py+6-6