arxivgpt kim
commited on
Commit
•
7197be0
1
Parent(s):
dc913e2
Update app.py
Browse files
app.py
CHANGED
@@ -48,16 +48,18 @@ def doo(video, mode):
|
|
48 |
writer.release()
|
49 |
return str(tmpname) + '.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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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=examples
|
62 |
)
|
63 |
iface.launch()
|
|
|
48 |
writer.release()
|
49 |
return str(tmpname) + '.mp4'
|
50 |
|
|
|
|
|
|
|
|
|
51 |
|
52 |
examples = [['./input.mp4'],]
|
53 |
|
54 |
+
css = """
|
55 |
+
footer {
|
56 |
+
visibility: hidden;
|
57 |
+
}
|
58 |
+
"""
|
59 |
+
|
60 |
+
iface = gr.Interface(css=css,
|
61 |
fn=doo,
|
62 |
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.')],
|
63 |
+
outputs="video", examples=examples
|
64 |
)
|
65 |
iface.launch()
|