Spaces:
Sleeping
Sleeping
Download docking_client.py from anaghanagesh/DD: direct link, hf CLI and curl.
- Browser
- Download file 283 Bytes
-
https://huggingface.co/spaces/anaghanagesh/DD/resolve/main/docking_client.py
- Command line
-
hf download hf://spaces/anaghanagesh/DD/docking_client.py
-
curl -L -o docking_client.py https://huggingface.co/spaces/anaghanagesh/DD/resolve/main/docking_client.py
283 Bytes
| import requests | |
| DOCKING_API = "http://your-server-ip:8000/dock" # change later | |
| def run_docking(smiles): | |
| try: | |
| res = requests.post(DOCKING_API, json={"smiles": smiles}) | |
| return res.json() | |
| except: | |
| return {"score": "Docking server unavailable"} | |