mime = magic.Magic(mime=True)
auth_token = "Bearer <API TOKEN>"
# Give the path to your file here, the path should be realtive to where
#you are running this code snipper from.
FILE_PATH = "./files/sample.mp4"
DESCRIPTION = "Sample Description"
file_name = FILE_PATH.split("/")[-1]
url = "https://api.marsview.ai/cb/v1/conversation/save_file"
'description': DESCRIPTION }
('file',(file_name, open(FILE_PATH,'rb'), mime.from_file(FILE_PATH)))
'authorization': auth_token
response = requests.request("POST", url, headers=headers, data=payload, files=files)
if __name__ == "__main__":