Learner commited on
Commit
335d8ac
1 Parent(s): 9d83e76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -22,8 +22,6 @@ from flax.jax_utils import replicate
22
  from flax.training.common_utils import shard
23
 
24
  os.environ["XLA_PYTHON_CLIENT_PREALLOCATE"]="false"
25
- os.environ["XLA_PYTHON_CLIENT_MEM_FRACTION"]=".XX"
26
- os.environ["XLA_PYTHON_CLIENT_ALLOCATOR"]="platform"
27
 
28
  def create_key(seed=0):
29
  return jax.random.PRNGKey(seed)
@@ -80,7 +78,7 @@ def infer(prompts, negative_prompts, image):
80
  title = "ControlNet + Stable Diffusion for Battlemaps"
81
  description = """Sketch your game battlemap and add some prompts to let the magic happen 🪄.
82
  Pretrained on battlemaps images.
83
- By Orgrim, Karm and Robin "
84
  """
85
  # you need to pass inputs and outputs according to inference function
86
  gr.Interface(
 
22
  from flax.training.common_utils import shard
23
 
24
  os.environ["XLA_PYTHON_CLIENT_PREALLOCATE"]="false"
 
 
25
 
26
  def create_key(seed=0):
27
  return jax.random.PRNGKey(seed)
 
78
  title = "ControlNet + Stable Diffusion for Battlemaps"
79
  description = """Sketch your game battlemap and add some prompts to let the magic happen 🪄.
80
  Pretrained on battlemaps images.
81
+ By Orgrim, Karm and Robin
82
  """
83
  # you need to pass inputs and outputs according to inference function
84
  gr.Interface(