Spaces:
Sleeping
Sleeping
Update text_generator.py
Browse files- 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["
|
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 |
|