Spaces:
Runtime error
Runtime error
MuhammadHanif
commited on
Commit
•
e7ba981
1
Parent(s):
d0c86d7
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ pipe, params = FlaxStableDiffusionPipeline.from_pretrained(
|
|
20 |
def infer(prompts, negative_prompts, width=1088, height=1088, inference_steps=30, seed=0):
|
21 |
|
22 |
num_samples = 1 #jax.device_count()
|
23 |
-
rng = create_key(seed)
|
24 |
rng = jax.random.split(rng, jax.device_count())
|
25 |
|
26 |
prompt_ids = pipe.prepare_inputs([prompts] * num_samples)
|
|
|
20 |
def infer(prompts, negative_prompts, width=1088, height=1088, inference_steps=30, seed=0):
|
21 |
|
22 |
num_samples = 1 #jax.device_count()
|
23 |
+
rng = create_key(int(seed))
|
24 |
rng = jax.random.split(rng, jax.device_count())
|
25 |
|
26 |
prompt_ids = pipe.prepare_inputs([prompts] * num_samples)
|