rubenwol commited on
Commit
5d146d5
1 Parent(s): ad98a3c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -2
README.md CHANGED
@@ -1,4 +1,12 @@
1
  # SuperPAL model
2
 
3
- widget:
4
- - text: "Prime Minister Hun Sen insisted that talks take place in Cambodia. </s><s> Cambodian leader Hun Sen rejected opposition parties' demands for talks outside the country."
 
 
 
 
 
 
 
 
 
1
  # SuperPAL model
2
 
3
+ import requests
4
+
5
+ API_URL = "https://api-inference.huggingface.co/models/biu-nlp/superpal"
6
+ headers = {"Authorization": "Bearer api_MaOZZEVvkCVoMqyvDwZdMqRKAQJlBrzWqM"}
7
+
8
+ def query(payload):
9
+ response = requests.post(API_URL, headers=headers, json=payload)
10
+ return response.json()
11
+
12
+ output = query({"inputs": "Prime Minister Hun Sen insisted that talks take place in Cambodia. </s><s> Cambodian leader Hun Sen rejected opposition parties' demands for talks outside the country."})