Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,17 +52,19 @@ def doo(video, mode, progress=gr.Progress()):
|
|
| 52 |
writer.release()
|
| 53 |
return str(tmpname) + '.mp4'
|
| 54 |
|
| 55 |
-
title = "🎞️ Video Background Removal Tool 🎥"
|
| 56 |
-
description = """*Please note that if your video file is long (has a high number of frames), there is a chance that processing break due to GPU timeout. In this case, consider trying Fast mode."""
|
| 57 |
-
|
| 58 |
examples = [['./input.mp4']]
|
| 59 |
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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",
|
| 64 |
-
examples=examples
|
| 65 |
-
title=title,
|
| 66 |
-
description=description
|
| 67 |
)
|
| 68 |
iface.launch()
|
|
|
|
| 52 |
writer.release()
|
| 53 |
return str(tmpname) + '.mp4'
|
| 54 |
|
|
|
|
|
|
|
|
|
|
| 55 |
examples = [['./input.mp4']]
|
| 56 |
|
| 57 |
+
css = """
|
| 58 |
+
footer {
|
| 59 |
+
visibility: hidden;
|
| 60 |
+
}
|
| 61 |
+
"""
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
iface = gr.Interface(theme="Nymbo/Nymbo_Theme", css=css,
|
| 65 |
fn=doo,
|
| 66 |
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.')],
|
| 67 |
outputs="video",
|
| 68 |
+
examples=examples
|
|
|
|
|
|
|
| 69 |
)
|
| 70 |
iface.launch()
|