Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,14 +5,14 @@ from IPython.display import Image, display, HTML
|
|
5 |
from PIL import Image
|
6 |
import base64
|
7 |
|
8 |
-
hf_api_key = os.environ
|
9 |
|
10 |
|
11 |
# Helper function
|
12 |
import requests, json
|
13 |
|
14 |
#Summarization endpoint
|
15 |
-
def get_completion(inputs, parameters=None,ENDPOINT_URL= os.environ
|
16 |
headers = {
|
17 |
"Authorization": f"Bearer {hf_api_key}",
|
18 |
"Content-Type": "application/json"
|
|
|
5 |
from PIL import Image
|
6 |
import base64
|
7 |
|
8 |
+
hf_api_key = os.environ["HF_AOI_KEY"]
|
9 |
|
10 |
|
11 |
# Helper function
|
12 |
import requests, json
|
13 |
|
14 |
#Summarization endpoint
|
15 |
+
def get_completion(inputs, parameters=None,ENDPOINT_URL= os.environ["API_URL"]):
|
16 |
headers = {
|
17 |
"Authorization": f"Bearer {hf_api_key}",
|
18 |
"Content-Type": "application/json"
|