Learner commited on
Commit
a065d6a
·
1 Parent(s): 669cb62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.open(image).copy()
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)