tracyorcaleb
commited on
Commit
•
85113fd
1
Parent(s):
580dcd1
Drop stuff
Browse files- .gitignore +2 -1
- app.py +2 -2
- out.jpg +0 -0
- video_out.mp4 +0 -0
.gitignore
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
flagged/
|
2 |
.ipynb_checkpoints
|
3 |
.ipynb_checkpoints
|
4 |
-
|
|
|
|
1 |
flagged/
|
2 |
.ipynb_checkpoints
|
3 |
.ipynb_checkpoints
|
4 |
+
temp/
|
5 |
+
*/.ipynb_checkpoints/*
|
app.py
CHANGED
@@ -25,7 +25,7 @@ def add_static_image_to_audio(image, audio):
|
|
25 |
# set the FPS to 1
|
26 |
video_clip.fps = 1
|
27 |
# write the resuling video clip
|
28 |
-
path = "video_out.mp4"
|
29 |
video_clip.write_videofile(path)
|
30 |
return path
|
31 |
|
@@ -36,7 +36,7 @@ def get_stable_diffusion_image(prompt):
|
|
36 |
pipe = pipe.to(device)
|
37 |
with autocast("cuda"):
|
38 |
image = pipe(prompt, guidance_scale=7.5)["sample"][0]
|
39 |
-
path = "out.jpg"
|
40 |
image.save(path)
|
41 |
return path
|
42 |
|
|
|
25 |
# set the FPS to 1
|
26 |
video_clip.fps = 1
|
27 |
# write the resuling video clip
|
28 |
+
path = "temp/video_out.mp4"
|
29 |
video_clip.write_videofile(path)
|
30 |
return path
|
31 |
|
|
|
36 |
pipe = pipe.to(device)
|
37 |
with autocast("cuda"):
|
38 |
image = pipe(prompt, guidance_scale=7.5)["sample"][0]
|
39 |
+
path = "temp/out.jpg"
|
40 |
image.save(path)
|
41 |
return path
|
42 |
|
out.jpg
DELETED
Binary file (59 kB)
|
|
video_out.mp4
DELETED
Binary file (590 kB)
|
|