Learner commited on
Commit
a260e25
·
1 Parent(s): 0ee1469

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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([battlemap_image] * num_samples)
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)