amirgame197 commited on
Commit
632ab5a
1 Parent(s): 7de892f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ from transparent_background import Remover
11
  def doo(video, mode):
12
  if(mode == 'Normal'):
13
  remover = Remover()
14
- if(mode == 'Fast'):
15
  remover = Remover(mode='fast')
16
  cap = cv2.VideoCapture(video)
17
  fps = cap.get(cv2.CAP_PROP_FPS)
@@ -50,7 +50,7 @@ def doo(video, mode):
50
 
51
  iface = gr.Interface(
52
  fn=doo,
53
- inputs=["video", gr.components.Radio(['Normal', 'Fast'], label='Select mode', value='Normal', info= 'Normal is more accurate, but takes longer. | Fast has lower accuracy so the process will be faster')],
54
  outputs="video"
55
  )
56
  iface.launch()
 
11
  def doo(video, mode):
12
  if(mode == 'Normal'):
13
  remover = Remover()
14
+ else:
15
  remover = Remover(mode='fast')
16
  cap = cv2.VideoCapture(video)
17
  fps = cap.get(cv2.CAP_PROP_FPS)
 
50
 
51
  iface = gr.Interface(
52
  fn=doo,
53
+ inputs=["video", gr.components.Radio(['Normal', 'Fast'], label='Select mode', value='Normal', info= 'Normal is more accurate, but takes longer. | Fast has lower accuracy so the process will be faster.')],
54
  outputs="video"
55
  )
56
  iface.launch()