Chris4K commited on
Commit
efe65ac
1 Parent(s): 126246c

Update text_generator.py

Browse files
Files changed (1) hide show
  1. text_generator.py +1 -1
text_generator.py CHANGED
@@ -14,7 +14,7 @@ class TextGenerationTool(Tool):
14
  outputs = ["text"]
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
 
14
  outputs = ["text"]
15
 
16
  def __call__(self, prompt: str):
17
+ API_URL = "https://api-inference.huggingface.co/models/gpt2"
18
  headers = {"Authorization": "Bearer " + os.environ['hf']}
19
 
20
  # Define the payload for the request