Update text_generator.py
Browse files- text_generator.py +3 -3
text_generator.py
CHANGED
@@ -26,9 +26,9 @@ class TextGenerationTool(Tool):
|
|
26 |
}
|
27 |
|
28 |
#def query(payload):
|
29 |
-
|
30 |
-
print(
|
31 |
-
return
|
32 |
|
33 |
|
34 |
|
|
|
26 |
}
|
27 |
|
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 |
|