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

How to run and use from google colab ? #46

Open
AmeerAlkhier opened this issue Sep 20, 2021 · 0 comments
Open

How to run and use from google colab ? #46

AmeerAlkhier opened this issue Sep 20, 2021 · 0 comments

Comments

@AmeerAlkhier
Copy link

Hello
This is actually a question not an issue
I have used the code you provided and edited it minimally so it will run on colab notebook. It seems to be working but the problem is that I don't know how to use the model in this case. can the server address be obtained via this command :
!curl ipecho.net/plain

After I ran the previous command I got the server number and then I ran this script in a different notebook:

import requests
import json
body_data = {"param": json.dumps({"text": "CLAPO syndrome: identification of somatic activating PIK3CA mutations and the syndrome."})}
response = requests.post('http://<YOUR_SERVER_ADDRESS>:8888', data=body_data)
result_dict = response.json()

print(result_dict)

unfortunately it generates timeout error every time.
I would really appreciate your help or any advice. Thanks.

here is the link to the notebook.

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