Spaces:
Running
on
Zero
Running
on
Zero
amirgame197
commited on
Commit
•
927e8af
1
Parent(s):
28c7f67
Update app.py
Browse files
app.py
CHANGED
@@ -49,11 +49,15 @@ def doo(video, mode):
|
|
49 |
return 'output.mp4'
|
50 |
|
51 |
title = "🎞️Video Background Removal tool🎥"
|
|
|
52 |
description = r"""Please note that if your video file is long (or having high amount of frames) the result may be shorter than input video because of the GPU timeout.<br>
|
53 |
In this case consider trying Fast mode."""
|
|
|
|
|
|
|
54 |
iface = gr.Interface(
|
55 |
fn=doo,
|
56 |
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.')],
|
57 |
-
outputs="video", title=title, description=description
|
58 |
)
|
59 |
iface.launch()
|
|
|
49 |
return 'output.mp4'
|
50 |
|
51 |
title = "🎞️Video Background Removal tool🎥"
|
52 |
+
|
53 |
description = r"""Please note that if your video file is long (or having high amount of frames) the result may be shorter than input video because of the GPU timeout.<br>
|
54 |
In this case consider trying Fast mode."""
|
55 |
+
|
56 |
+
examples = [['./input.mp4'],]
|
57 |
+
|
58 |
iface = gr.Interface(
|
59 |
fn=doo,
|
60 |
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.')],
|
61 |
+
outputs="video", examples=examtitl, title=title, description=description
|
62 |
)
|
63 |
iface.launch()
|