Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ description = "Gradio demo of PyScene scenedetect, to automatically find every s
|
|
| 16 |
# —————————————————————————————————————————————————
|
| 17 |
|
| 18 |
# SET INPUTS
|
| 19 |
-
video_input = gr.Video(source="upload", format="mp4");
|
| 20 |
|
| 21 |
# —————————————————————————————————————————————————
|
| 22 |
|
|
@@ -129,7 +129,9 @@ gradio_components_outputs = []
|
|
| 129 |
# gradio_components_outputs = [ "json", "video", "video", ... , "video", "file", "gallery" ]
|
| 130 |
# outputs = gradio_components_outputs
|
| 131 |
|
| 132 |
-
|
|
|
|
|
|
|
| 133 |
|
| 134 |
# —————————————————————————————————————————————————
|
| 135 |
|
|
|
|
| 16 |
# —————————————————————————————————————————————————
|
| 17 |
|
| 18 |
# SET INPUTS
|
| 19 |
+
video_input = gr.Video(source="upload", format="mp4", label="Video Sequence");
|
| 20 |
|
| 21 |
# —————————————————————————————————————————————————
|
| 22 |
|
|
|
|
| 129 |
# gradio_components_outputs = [ "json", "video", "video", ... , "video", "file", "gallery" ]
|
| 130 |
# outputs = gradio_components_outputs
|
| 131 |
|
| 132 |
+
# ANOTHER SOLUTION WOULD BE USING A (FUTURE ?) "VIDEO GALLERY" GRADIO COMPONENT FROM LIST :)
|
| 133 |
+
|
| 134 |
+
outputs = [gr.JSON(label="Shots detected"), gr.File(label="Downloadable Shots"), gr.Gallery(label="Still Images from each shot").style(grid=3)]
|
| 135 |
|
| 136 |
# —————————————————————————————————————————————————
|
| 137 |
|