Add inferencing and fix encoding for workflow file