Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def infer(prompts, negative_prompts, image):
|
|
45 |
num_samples = 1 # jax.device_count()
|
46 |
rng = create_key(0)
|
47 |
rng = jax.random.split(rng, jax.device_count())
|
48 |
-
battlemap_image = Image.
|
49 |
|
50 |
prompt_ids = pipe.prepare_text_inputs([prompts] * num_samples)
|
51 |
negative_prompt_ids = pipe.prepare_text_inputs([negative_prompts] * num_samples)
|
|
|
45 |
num_samples = 1 # jax.device_count()
|
46 |
rng = create_key(0)
|
47 |
rng = jax.random.split(rng, jax.device_count())
|
48 |
+
battlemap_image = Image.fromarray(image)
|
49 |
|
50 |
prompt_ids = pipe.prepare_text_inputs([prompts] * num_samples)
|
51 |
negative_prompt_ids = pipe.prepare_text_inputs([negative_prompts] * num_samples)
|