MFawad commited on
Commit
5931de7
·
1 Parent(s): c9acbfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.__getattribute__("HF_API_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.__getattribute__("API_URL")):
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"