Spaces:
Runtime error
Runtime error
Update app.py
Browse files16 unmodified lines171819202021222316 unmodified lines4041424344434445464716 unmodified linesEfficient_model = load_model(EfficientNet_path)
history=''def classify_selected_model(image, model_name): try: img = cv2.imread(image)16 unmodified lines result_str = f"Predicted Class: {class_name}\nProbability: {probability}%\nModel: {model_name}" result_str.append(result_str) return class_name, probability, result_str history.append(result_str) return class_name, probability, history except Exception as e: error_message = f"Error: {str(e)}"app.py+3-3