auth_token = "replace this with your auth token"
txn_id = "Replace this with your txn id"
request_url = "https://api.marsview.ai/cb/v1/conversation/{user_id}/compute"
"modelType":"screengrabs",
"classes" : ['drawing', 'ppt', 'screen',
'speaker_face', 'speaker_presentation']
headers = {'authorization': '{}'.format(auth_token)}
response = requests.request("POST", request_url.format(user_id=user_id), headers=headers, json=payload)
if response.status_code == 200 and response.json()["status"] == "true":
return response.json()["data"]["enableModels"]["state"]["status"]
raise Exception("Custom exception")
if __name__ == "__main__":