Spaces:
Running
Running
Commit
·
dc4366f
1
Parent(s):
a1cfbda
app.py
CHANGED
@@ -76,7 +76,7 @@ with gr.Blocks() as demo:
|
|
76 |
gr.Markdown("# Create your own Video")
|
77 |
img=gr.Image()
|
78 |
btn = gr.Button()
|
79 |
-
video=gr.Video()
|
80 |
btn.click(Video.Video, img, video)
|
81 |
|
82 |
demo.launch()
|
|
|
76 |
gr.Markdown("# Create your own Video")
|
77 |
img=gr.Image()
|
78 |
btn = gr.Button()
|
79 |
+
video=gr.Video(type="mp4")
|
80 |
btn.click(Video.Video, img, video)
|
81 |
|
82 |
demo.launch()
|
options/Video_model/Model.py
CHANGED
@@ -34,8 +34,8 @@ def Video(image):
|
|
34 |
|
35 |
# Generate the video frames
|
36 |
frames = pipeline(image, decode_chunk_size=8, generator=generator).frames[0]
|
37 |
-
|
38 |
# Export the frames to a video file
|
39 |
-
export_to_video(frames,
|
40 |
|
41 |
-
return
|
|
|
34 |
|
35 |
# Generate the video frames
|
36 |
frames = pipeline(image, decode_chunk_size=8, generator=generator).frames[0]
|
37 |
+
path="generated.mp4"
|
38 |
# Export the frames to a video file
|
39 |
+
export_to_video(frames, path, fps=7)
|
40 |
|
41 |
+
return path
|
options/Video_model/__pycache__/Model.cpython-310.pyc
CHANGED
Binary files a/options/Video_model/__pycache__/Model.cpython-310.pyc and b/options/Video_model/__pycache__/Model.cpython-310.pyc differ
|
|