Spaces:
Sleeping
Sleeping
Shaffique Aljoofri
commited on
Commit
·
f5046f4
1
Parent(s):
6d05b99
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
# Helper function
|
| 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 = {
|
|
|
|
| 1 |
# Helper function
|
| 2 |
import os, requests, json
|
| 3 |
|
| 4 |
+
hf_api_key = os.environ['HF_API_KEY']
|
| 5 |
+
|
| 6 |
#Summarization endpoint
|
| 7 |
def get_completion(inputs, parameters=None, ENDPOINT_URL="shleifer/distilbart-cnn-12-6"):
|
| 8 |
headers = {
|