Update README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
# SuperPAL model
|
2 |
|
|
|
3 |
import requests
|
4 |
|
5 |
API_URL = "https://api-inference.huggingface.co/models/biu-nlp/superpal"
|
@@ -9,4 +10,5 @@ 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."})
|
|
|
|
1 |
# SuperPAL model
|
2 |
|
3 |
+
```python
|
4 |
import requests
|
5 |
|
6 |
API_URL = "https://api-inference.huggingface.co/models/biu-nlp/superpal"
|
|
|
10 |
response = requests.post(API_URL, headers=headers, json=payload)
|
11 |
return response.json()
|
12 |
|
13 |
+
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."})
|
14 |
+
```
|