Yaron Koresh commited on
Commit
695d112
·
verified ·
1 Parent(s): 64ebe8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -21,14 +21,16 @@ from diffusers.utils import load_image
21
  #import jax
22
  #import jax.numpy as jnp
23
 
 
 
 
24
  def init_pool(q):
 
25
  global b
26
  b = q
27
 
28
  _dynamo.config.suppress_errors = True
29
 
30
- os.environ["GRADIO_SERVER_PORT"]=8888
31
-
32
  mp.set_start_method("spawn", force=True)
33
  b=mp.Queue()
34
 
 
21
  #import jax
22
  #import jax.numpy as jnp
23
 
24
+ def port_inc():
25
+ os.environ["GRADIO_SERVER_PORT"]=str(int(os.getenv("GRADIO_SERVER_PORT"))+1)
26
+
27
  def init_pool(q):
28
+ port_inc()
29
  global b
30
  b = q
31
 
32
  _dynamo.config.suppress_errors = True
33
 
 
 
34
  mp.set_start_method("spawn", force=True)
35
  b=mp.Queue()
36