Spaces:
Sleeping
Sleeping
Modify model
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def fn(sign, cat):
|
|
40 |
set_seed(seed)
|
41 |
|
42 |
# response = pipe(starting_text, max_length=(len(starting_text) + random.randint(60, 90)), num_return_sequences=1)
|
43 |
-
|
44 |
# image = pipe(response[0]["generated_text"], num_inference_steps=5).images[0]
|
45 |
image = pipe(sign + " art", num_inference_steps=5).images[0]
|
46 |
return [image, starting_text]
|
|
|
40 |
set_seed(seed)
|
41 |
|
42 |
# response = pipe(starting_text, max_length=(len(starting_text) + random.randint(60, 90)), num_return_sequences=1)
|
43 |
+
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
|
44 |
# image = pipe(response[0]["generated_text"], num_inference_steps=5).images[0]
|
45 |
image = pipe(sign + " art", num_inference_steps=5).images[0]
|
46 |
return [image, starting_text]
|