Spaces:
Sleeping
Sleeping
Update text_generator.py
Browse files- 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 |
-
|
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 "}
|
20 |
|
21 |
#def query(payload):
|
22 |
generated_text = requests.post(API_URL, headers=headers, json=payload)
|