Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,12 +24,16 @@ def transcode_video(video):
|
|
| 24 |
return output_file
|
| 25 |
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
demo = gr.Interface(transcode_video,
|
| 28 |
gr.components.Video(),
|
| 29 |
"playable_video",
|
| 30 |
-
examples=
|
| 31 |
-
Video()],
|
| 32 |
cache_examples=True)
|
| 33 |
|
| 34 |
if __name__ == "__main__":
|
| 35 |
-
demo.launch()
|
|
|
|
| 24 |
return output_file
|
| 25 |
|
| 26 |
|
| 27 |
+
video_files = [
|
| 28 |
+
"/path/to/video1.mp4",
|
| 29 |
+
"/path/to/video2.mp4",
|
| 30 |
+
]
|
| 31 |
+
|
| 32 |
demo = gr.Interface(transcode_video,
|
| 33 |
gr.components.Video(),
|
| 34 |
"playable_video",
|
| 35 |
+
examples=video_files,
|
|
|
|
| 36 |
cache_examples=True)
|
| 37 |
|
| 38 |
if __name__ == "__main__":
|
| 39 |
+
demo.launch()
|