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

Getting Timeout Errors while using Restful API method #73

Open
Khyati-Microcrispr opened this issue Nov 23, 2024 · 0 comments
Open

Getting Timeout Errors while using Restful API method #73

Khyati-Microcrispr opened this issue Nov 23, 2024 · 0 comments

Comments

@Khyati-Microcrispr
Copy link

import requests

def query_plain(text, url="http://localhost:8888/plain"):
return requests.post(url, json={'text': text}).json()

if name == 'main':
text = "Autophagy maintains tumour growth through circulating arginine."
print(query_plain(text))

{'error_message': 'Something went wrong. Try again.'}

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