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

API Topic Threshold error #15

Open
RichardScottOZ opened this issue Aug 17, 2022 · 3 comments
Open

API Topic Threshold error #15

RichardScottOZ opened this issue Aug 17, 2022 · 3 comments

Comments

@RichardScottOZ
Copy link

i find when I have this less than 1, it gives an error - intended?

If so, can add to docs?

@RichardScottOZ
Copy link
Author

or

payload = '{"text": ["Astronauts go on space walks.","Basalt rocks and minerals are on earth."],"probability_threshold":"0.5", "topic_threshold":"2.0", "request_id":"example_id10"}'

headers = {}
res = requests.post(url, data=payload, headers=headers)
print(res)
print(res.json())

<Response [500]>
{'msg': 'Internal Service Error', 'service_version': 'unspecified'}

@RichardScottOZ
Copy link
Author

Same thing if you leave it out, I think.

@RichardScottOZ
Copy link
Author

e.g.

payload = '{"text": ["NASA Concept Tagging API works.","Web interface to go."]}'

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