Spaces:
Running
Running
Update prompt_extend.py
Browse files- prompt_extend.py +1 -1
prompt_extend.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
-
pipe = pipeline('text-generation', model='
|
4 |
|
5 |
def extend_prompt(prompt):
|
6 |
return pipe(prompt+',', num_return_sequences=1)[0]["generated_text"]
|
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
+
pipe = pipeline('text-generation', model='Gustavosta/MagicPrompt-Stable-Diffusion')
|
4 |
|
5 |
def extend_prompt(prompt):
|
6 |
return pipe(prompt+',', num_return_sequences=1)[0]["generated_text"]
|