Chris4K commited on
Commit
977090c
1 Parent(s): 299669a

Update text_generator.py

Browse files
Files changed (1) hide show
  1. text_generator.py +1 -1
text_generator.py CHANGED
@@ -28,7 +28,7 @@ class TextGenerationTool(Tool):
28
  #def query(payload):
29
  generated_text = requests.post(API_URL, headers=headers, json=payload).json()
30
  print(generated_text)
31
- return generated_text["generated_text"]
32
 
33
 
34
 
 
28
  #def query(payload):
29
  generated_text = requests.post(API_URL, headers=headers, json=payload).json()
30
  print(generated_text)
31
+ return generated_text["text"]
32
 
33
 
34