amirgame197 commited on
Commit
caf9fa8
1 Parent(s): 077d557

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -6,7 +6,7 @@ import numpy as np
6
  from PIL import Image
7
  from transparent_background import Remover
8
 
9
- remover = Remover(mode='fast')
10
 
11
  @spaces.GPU
12
  def doo(video):
@@ -34,8 +34,5 @@ def doo(video):
34
  writer.release()
35
  return 'output.mp4'
36
 
37
- def display_video(output_video):
38
- return output_video
39
-
40
  iface = gr.Interface(fn=doo, inputs="video", outputs="video")
41
  iface.launch()
 
6
  from PIL import Image
7
  from transparent_background import Remover
8
 
9
+ remover = Remover()
10
 
11
  @spaces.GPU
12
  def doo(video):
 
34
  writer.release()
35
  return 'output.mp4'
36
 
 
 
 
37
  iface = gr.Interface(fn=doo, inputs="video", outputs="video")
38
  iface.launch()