Spaces:
Running
Running
Update text_generator.py
Browse files- text_generator.py +2 -1
text_generator.py
CHANGED
@@ -36,7 +36,8 @@ 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="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)
|
|
|
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 |
+
text_generator = pipeline(model="microsoft/Orca-2-13b", token=token)
|
41 |
|
42 |
# Generate text based on a prompt
|
43 |
generated_text = text_generator(prompt, max_length=500, num_return_sequences=1, temperature=0.7)
|