Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ pipeline, pipeline_params = FlaxStableDiffusionPipeline.from_pretrained(
|
|
12 |
def generate_image(prompt: str, inference_steps: int = 30, prng_seed: int = 0):
|
13 |
rng = jax.random.PRNGKey(int(prng_seed))
|
14 |
rng = jax.random.split(rng, jax.device_count())
|
15 |
-
p_params = replicate(
|
16 |
|
17 |
num_samples = 1
|
18 |
prompt_ids = pipeline.prepare_inputs([prompt] * num_samples)
|
|
|
12 |
def generate_image(prompt: str, inference_steps: int = 30, prng_seed: int = 0):
|
13 |
rng = jax.random.PRNGKey(int(prng_seed))
|
14 |
rng = jax.random.split(rng, jax.device_count())
|
15 |
+
p_params = replicate(pipeline_params)
|
16 |
|
17 |
num_samples = 1
|
18 |
prompt_ids = pipeline.prepare_inputs([prompt] * num_samples)
|