Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,11 +53,11 @@ def infer(prompts, negative_prompts, image):
|
|
53 |
num_samples = 1 # jax.device_count()
|
54 |
rng = create_key(0)
|
55 |
rng = jax.random.split(rng, jax.device_count())
|
56 |
-
battlemap_image = Image.open(image)
|
57 |
|
58 |
prompt_ids = pipe.prepare_text_inputs([prompts] * num_samples)
|
59 |
negative_prompt_ids = pipe.prepare_text_inputs([negative_prompts] * num_samples)
|
60 |
-
processed_image = pipe.prepare_image_inputs([
|
61 |
|
62 |
p_params = replicate(params)
|
63 |
prompt_ids = shard(prompt_ids)
|
|
|
53 |
num_samples = 1 # jax.device_count()
|
54 |
rng = create_key(0)
|
55 |
rng = jax.random.split(rng, jax.device_count())
|
56 |
+
#battlemap_image = Image.open(image)
|
57 |
|
58 |
prompt_ids = pipe.prepare_text_inputs([prompts] * num_samples)
|
59 |
negative_prompt_ids = pipe.prepare_text_inputs([negative_prompts] * num_samples)
|
60 |
+
processed_image = pipe.prepare_image_inputs([image] * num_samples) #battlemap_image
|
61 |
|
62 |
p_params = replicate(params)
|
63 |
prompt_ids = shard(prompt_ids)
|