Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Mapping Rule matched #24

Open
cjing1 opened this issue Jun 19, 2023 · 0 comments
Open

No Mapping Rule matched #24

cjing1 opened this issue Jun 19, 2023 · 0 comments

Comments

@cjing1
Copy link

cjing1 commented Jun 19, 2023

Hi, I am trying to run the code with the demo image on Jupyter Notebook, but receive the following error:
No Mapping Rule matched

Did I not insert the image in the right way?

import requests

# I put my own id and key here
headers = {
    "app_id": " ",
    "app_key": " "
}

payload = '{"image":" https://media.kairos.com/kairos-elizabeth.jpg "}'

url = "https://api.kairos.com"

# make request
r = requests.post(url, data=payload, headers=headers)
print(r.content)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant