yanze commited on
Commit
c437b94
1 Parent(s): f32801f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -7,8 +7,6 @@ from pulid import attention_processor as attention
7
  from pulid.pipeline import PuLIDPipeline
8
  from pulid.utils import resize_numpy_image_long, seed_everything
9
 
10
- torch.set_grad_enabled(False)
11
-
12
  import shutil
13
 
14
  def find_cuda():
@@ -249,5 +247,4 @@ with gr.Blocks(title="PuLID", css=".gr-box {border-color: #8136e2}") as demo:
249
  submit.click(fn=run, inputs=inps, outputs=[output, intermediate_output])
250
 
251
 
252
- demo.queue(max_size=3)
253
- demo.launch(server_name='0.0.0.0')
 
7
  from pulid.pipeline import PuLIDPipeline
8
  from pulid.utils import resize_numpy_image_long, seed_everything
9
 
 
 
10
  import shutil
11
 
12
  def find_cuda():
 
247
  submit.click(fn=run, inputs=inps, outputs=[output, intermediate_output])
248
 
249
 
250
+ demo.launch()