Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,16 +16,8 @@ pipe_xl.to("cuda")
|
|
| 16 |
|
| 17 |
def infer(prompt, video_in):
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
# Convert the video to the desired format
|
| 23 |
-
clip.write_videofile("video.mkv")
|
| 24 |
-
|
| 25 |
-
video = [Image.fromarray(frame).resize((1024, 576)) for frame in "video.mkv"]
|
| 26 |
-
#del pipe
|
| 27 |
-
#pipe_xl.to("cuda")
|
| 28 |
-
video_frames = pipe_xl(prompt, video=video, strength=0.6).frames
|
| 29 |
video_path = export_to_video(video_frames, output_video_path="xl_result.mp4")
|
| 30 |
|
| 31 |
return "xl_result.mp4", gr.Group.update(visible=True)
|
|
|
|
| 16 |
|
| 17 |
def infer(prompt, video_in):
|
| 18 |
|
| 19 |
+
|
| 20 |
+
video_frames = pipe_xl(prompt, video=video_in, strength=0.6).frames
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
video_path = export_to_video(video_frames, output_video_path="xl_result.mp4")
|
| 22 |
|
| 23 |
return "xl_result.mp4", gr.Group.update(visible=True)
|