Shaffique Aljoofri commited on
Commit
dbf7d83
·
1 Parent(s): 24819b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,10 +1,10 @@
1
  # Helper function
2
- import requests, json
3
 
4
  #Summarization endpoint
5
- def get_completion(inputs, parameters=None,ENDPOINT_URL=os.environ['HF_API_SUMMARY_BASE']):
6
  headers = {
7
- "Authorization": f"Bearer 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",
8
  "Content-Type": "application/json"
9
  }
10
  data = { "inputs": inputs }
 
1
  # Helper function
2
+ import os, requests, json
3
 
4
  #Summarization endpoint
5
+ def get_completion(inputs, parameters=None, ENDPOINT_URL=os.environ['HF_API_SUMMARY_BASE']):
6
  headers = {
7
+ "Authorization": f"Bearer {hf_api_key}",
8
  "Content-Type": "application/json"
9
  }
10
  data = { "inputs": inputs }