adjusted test script to get dictionary directly from saved model yaml src