Spaces:
Runtime error
Runtime error
RamAnanth1
commited on
Commit
•
c6b8cf6
1
Parent(s):
52d9e34
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
4 |
pipe = pipeline('text-generation', model='daspartho/prompt-extend')
|
5 |
|
6 |
def extend_prompt(input):
|
7 |
-
return pipe(
|
8 |
|
9 |
input_prompt = gr.Text(label="Enter the initial prompt")
|
10 |
sd2_output = gr.Text(label="Extended prompt suitable for Stable Diffusion 2")
|
|
|
4 |
pipe = pipeline('text-generation', model='daspartho/prompt-extend')
|
5 |
|
6 |
def extend_prompt(input):
|
7 |
+
return pipe(input+',', num_return_sequences=1)[0]["generated_text"]
|
8 |
|
9 |
input_prompt = gr.Text(label="Enter the initial prompt")
|
10 |
sd2_output = gr.Text(label="Extended prompt suitable for Stable Diffusion 2")
|