Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,19 @@ function(text_input, url_params) {
|
|
13 |
"""
|
14 |
|
15 |
def rem_bg(inp):
|
16 |
-
#transparent .mov
|
17 |
-
os.system(f'backgroundremover -i "{inp}" -tv -o "{inp}.mov"')
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
def predict(text, url_params):
|
20 |
mod_url=""
|
21 |
mod=gr.HTML("")
|
|
|
13 |
"""
|
14 |
|
15 |
def rem_bg(inp):
|
16 |
+
#transparent background .mov
|
17 |
+
#os.system(f'backgroundremover -i "{inp}" -tv -o "{inp}.mov"')
|
18 |
+
#video video to be overlayed output
|
19 |
+
#os.system(f' backgroundremover -i "/path/to/video.mp4" -tov "/path/to/videtobeoverlayed.mp4" -o "output.mov"')
|
20 |
+
#video over image file
|
21 |
+
#os.system(f'backgroundremover -i "/path/to/video.mp4" -toi "/path/to/videtobeoverlayed.mp4" -o "output.mov"')
|
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'
|
29 |
def predict(text, url_params):
|
30 |
mod_url=""
|
31 |
mod=gr.HTML("")
|