<jupyter_start><jupyter_text>Test JOB RUN from HTTP<jupyter_code># the last steps to invoke the model deployment REST service
import requests
import oci
from oci.signer import Signer
%%time
endpoint = "https://datascience.eu-frankfurt-1.oci.oraclecloud.com/20190101/jobRuns"

# again using RP
rps = oci.auth.signers.get_resource_principals_signer()

# payload goes here
body = {}

print("These are the probs from the deployed model:")

print(requests.post(endpoint, json=body, auth=rps).json())<jupyter_output>These are the probs from the deployed model:
{'code': 'InvalidParameter', 'message': 'compartmentId is not available'}
CPU times: user 631 ms, sys: 17.6 ms, total: 648 ms
Wall time: 1.93 s
{'fraction_non_alphanumeric': 0.10888252148997135, 'fraction_numerical': 0.03008595988538682, 'mean_word_length': 5.786407766990291, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '434672', 'license': 'MIT', 'n_tokens_mistral': 253, 'n_tokens_neox': 233, 'n_words': 75, 'path': '.ipynb_checkpoints/test_invoke_job_run-checkpoint.ipynb', 'repo_name': 'luigisaetta/catboost-employee-attrition', 'size': '698'}