Spaces:
Sleeping
Sleeping
Shaffique Aljoofri commited on
Commit ·
6d05b99
1
Parent(s): dbf7d83
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
import os, requests, json
|
| 3 |
|
| 4 |
#Summarization endpoint
|
| 5 |
-
def get_completion(inputs, parameters=None, ENDPOINT_URL=
|
| 6 |
headers = {
|
| 7 |
"Authorization": f"Bearer {hf_api_key}",
|
| 8 |
"Content-Type": "application/json"
|
|
|
|
| 2 |
import os, requests, json
|
| 3 |
|
| 4 |
#Summarization endpoint
|
| 5 |
+
def get_completion(inputs, parameters=None, ENDPOINT_URL="shleifer/distilbart-cnn-12-6"):
|
| 6 |
headers = {
|
| 7 |
"Authorization": f"Bearer {hf_api_key}",
|
| 8 |
"Content-Type": "application/json"
|