Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def rem_bg(inp):
|
|
22 |
#output to transparent GIF
|
23 |
#os.system(f'backgroundremover -i "/path/to/video.mp4" -tg -o "output.gif"')
|
24 |
#output to matte background
|
25 |
-
os.system(f'backgroundremover -i "{inp}" -mk -o "{inp}.matte.mp4"')
|
26 |
|
27 |
|
28 |
return f'{inp}.matte.mp4'
|
|
|
22 |
#output to transparent GIF
|
23 |
#os.system(f'backgroundremover -i "/path/to/video.mp4" -tg -o "output.gif"')
|
24 |
#output to matte background
|
25 |
+
os.system(f'backgroundremover -i "{inp}" -mk -o "{inp}.matte.mp4"')
|
26 |
|
27 |
|
28 |
return f'{inp}.matte.mp4'
|