Files changed (1) hide show
  1. Data +12 -0
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
+ })