Chris4K commited on
Commit
d07970f
1 Parent(s): 370984c

Update text_generator.py

Browse files
Files changed (1) hide show
  1. text_generator.py +1 -1
text_generator.py CHANGED
@@ -16,7 +16,7 @@ import requests
16
 
17
 
18
  API_URL = "https://api-inference.huggingface.co/models/lukasdrg/clinical_longformer_same_tokens_220k"
19
- # headers = {"Authorization": "Bearer "}
20
 
21
  #def query(payload):
22
  generated_text = requests.post(API_URL, headers=headers, json=payload)
 
16
 
17
 
18
  API_URL = "https://api-inference.huggingface.co/models/lukasdrg/clinical_longformer_same_tokens_220k"
19
+ headers = {"Authorization": "Bearer "+os.environ['HF']+"}
20
 
21
  #def query(payload):
22
  generated_text = requests.post(API_URL, headers=headers, json=payload)