Spaces:
Running
Running
Download Data from Bootcast/Test: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/Bootcast/Test/resolve/refs%2Fpr%2F1/Data
- Command line
-
hf download hf://spaces/Bootcast/Test@refs/pr/1/Data
-
curl -L -o Data https://huggingface.co/spaces/Bootcast/Test/resolve/refs%2Fpr%2F1/Data
379 Bytes
| import requests | |
| API_URL = "https://api-inference.huggingface.co/models/KoboldAI/OPT-2.7B-Nerys-v2" | |
| headers = {"Authorization": "Bearer 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"} | |
| def query(payload): | |
| response = requests.post(API_URL, headers=headers, json=payload) | |
| return response.json() | |
| output = query({ | |
| "inputs": "Can you please let us know more details about your ", | |
| }) |