Chris4K commited on
Commit
8c30a54
1 Parent(s): 39069a8

Update text_generator.py

Browse files
Files changed (1) hide show
  1. 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="Intel/neural-chat-7b-v3-1", 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)
 
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)