Spaces:
Sleeping
Sleeping
Update text_generator.py
Browse files- text_generator.py +1 -1
text_generator.py
CHANGED
@@ -15,7 +15,7 @@ class TextGenerationTool(Tool):
|
|
15 |
|
16 |
def __call__(self, prompt: str):
|
17 |
API_URL = "https://api-inference.huggingface.co/models/lukasdrg/clinical_longformer_same_tokens_220k"
|
18 |
-
headers = {"Authorization": "Bearer " + os.environ['
|
19 |
|
20 |
# Define the payload for the request
|
21 |
payload = {
|
|
|
15 |
|
16 |
def __call__(self, prompt: str):
|
17 |
API_URL = "https://api-inference.huggingface.co/models/lukasdrg/clinical_longformer_same_tokens_220k"
|
18 |
+
headers = {"Authorization": "Bearer " + os.environ['hf']}
|
19 |
|
20 |
# Define the payload for the request
|
21 |
payload = {
|