Yaron Koresh commited on
Commit
fc206fd
·
verified ·
1 Parent(s): 964207f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -24,9 +24,8 @@ from diffusers.utils import load_image
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
- global b
29
- b = q
30
 
31
  _dynamo.config.suppress_errors = True
32
 
 
24
  def port_inc():
25
  os.environ["GRADIO_SERVER_PORT"]=str(int(os.getenv("GRADIO_SERVER_PORT"))+1)
26
 
27
+ def init_pool():
28
+ port_inc()
 
29
 
30
  _dynamo.config.suppress_errors = True
31