sanghyun-lee commited on
Commit
32644bf
1 Parent(s): ba2c8ab

create remover only once

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -1,10 +1,7 @@
1
  import gradio as gr
2
  from transparent_background import Remover
3
 
4
- # Load model
5
- remover = Remover() # default setting
6
- remover = Remover(mode='fast', jit=True, device='cpu', ckpt='latest.pth') # custom setting
7
- remover = Remover(mode='base-nightly') # nightly release checkpoint
8
 
9
 
10
  def run(inp_image, sod_type):
 
1
  import gradio as gr
2
  from transparent_background import Remover
3
 
4
+ remover = Remover(mode='base-nightly')
 
 
 
5
 
6
 
7
  def run(inp_image, sod_type):