Spaces:
Running
Running
Create Data (#1)
Browse files- Create Data (7222c0aee9ffc084f242517886f8af3fb4e9dc5f)
Data
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import requests
|
2 |
+
|
3 |
+
API_URL = "https://api-inference.huggingface.co/models/KoboldAI/OPT-2.7B-Nerys-v2"
|
4 |
+
headers = {"Authorization": "Bearer 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"}
|
5 |
+
|
6 |
+
def query(payload):
|
7 |
+
response = requests.post(API_URL, headers=headers, json=payload)
|
8 |
+
return response.json()
|
9 |
+
|
10 |
+
output = query({
|
11 |
+
"inputs": "Can you please let us know more details about your ",
|
12 |
+
})
|