kumar9 commited on
Commit
e2a16d4
1 Parent(s): f0224cb

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -21,7 +21,7 @@ os.environ['TRANSFORMERS_CACHE'] = '/.cache/huggingface/hub'
21
  # api_key = os.getenv('API_KEY')
22
  # api_url = os.getenv('API_URL')
23
 
24
- headers = {"Authorization": f"Bearer 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"}
25
  API_URL = "https://api-inference.huggingface.co/models/ProsusAI/finbert"
26
  def query(payload):
27
  response = requests.post(API_URL, headers=headers, json=payload)
 
21
  # api_key = os.getenv('API_KEY')
22
  # api_url = os.getenv('API_URL')
23
 
24
+ headers = {"Authorization": f"Bearer token"}
25
  API_URL = "https://api-inference.huggingface.co/models/ProsusAI/finbert"
26
  def query(payload):
27
  response = requests.post(API_URL, headers=headers, json=payload)