Update text_generator.py
Browse files- text_generator.py +1 -1
text_generator.py
CHANGED
@@ -36,7 +36,7 @@ class TextGenerationTool(Tool):
|
|
36 |
#generated_text = f"Generated text based on the prompt: '{prompt}'"
|
37 |
|
38 |
# Initialize the text generation pipeline
|
39 |
-
text_generator = pipeline(model="
|
40 |
|
41 |
# Generate text based on a prompt
|
42 |
generated_text = text_generator(prompt, max_length=500, num_return_sequences=1, temperature=0.7)
|
|
|
36 |
#generated_text = f"Generated text based on the prompt: '{prompt}'"
|
37 |
|
38 |
# Initialize the text generation pipeline
|
39 |
+
text_generator = pipeline(model="lgaalves/gpt2-dolly", token=token)
|
40 |
|
41 |
# Generate text based on a prompt
|
42 |
generated_text = text_generator(prompt, max_length=500, num_return_sequences=1, temperature=0.7)
|