Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,15 +55,21 @@ def process_video(video_path):
|
|
| 55 |
|
| 56 |
return Image.fromarray(cv2.cvtColor(grid, cv2.COLOR_BGR2RGB)), zip_path
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
fn=process_video,
|
| 60 |
inputs=gr.File(label="Upload Video"),
|
| 61 |
outputs=[
|
| 62 |
gr.Image(label="Frame Grid"),
|
| 63 |
gr.File(label="Download All Frames (ZIP)")
|
| 64 |
],
|
| 65 |
-
title="
|
| 66 |
-
|
| 67 |
-
)
|
| 68 |
|
| 69 |
iface.launch()
|
|
|
|
| 55 |
|
| 56 |
return Image.fromarray(cv2.cvtColor(grid, cv2.COLOR_BGR2RGB)), zip_path
|
| 57 |
|
| 58 |
+
css = """
|
| 59 |
+
footer {
|
| 60 |
+
visibility: hidden;
|
| 61 |
+
}
|
| 62 |
+
"""
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
iface = gr.Interface(theme="Nymbo/Nymbo_Theme", css=css,
|
| 66 |
fn=process_video,
|
| 67 |
inputs=gr.File(label="Upload Video"),
|
| 68 |
outputs=[
|
| 69 |
gr.Image(label="Frame Grid"),
|
| 70 |
gr.File(label="Download All Frames (ZIP)")
|
| 71 |
],
|
| 72 |
+
title="비디오 to 이미지(프레임)",
|
| 73 |
+
|
|
|
|
| 74 |
|
| 75 |
iface.launch()
|