193 pbar.update_absolute(step, images.shape[0]) 194 #when last image is processed, send email 195 if step == images.shape[0]-1: 196 if webhook_type == "GET": 197 response = requests.get(webhook_url, params={"message": message}) 198 else: 199 response = requests.post(webhook_url, json={"message": message}) 200
195 if step == images.shape[0]-1: 196 if webhook_type == "GET": 197 response = requests.get(webhook_url, params={"message": message}) 198 else: 199 response = requests.post(webhook_url, json={"message": message}) 200 201 # Print the status code of the response 202 print('Status Code:', response.status_code)