To know confidence value

Hello everyone, i want to extract confidence value and intent in my python file. Can anyone help me to code this. I am using flask to run and i want to extract above info in flask file itself.

thanks

please provide any update

Thanks and Regards

Omar