Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def generate_and_export_animation(prompt):
|
|
48 |
output = pipe(
|
49 |
prompt=prompt,
|
50 |
negative_prompt="bad quality, worse quality, low resolution, blur",
|
51 |
-
num_frames=
|
52 |
guidance_scale=2.0,
|
53 |
num_inference_steps=6
|
54 |
)
|
@@ -58,7 +58,7 @@ def generate_and_export_animation(prompt):
|
|
58 |
with tempfile.NamedTemporaryFile(suffix='.mp4', delete=False) as temp_file:
|
59 |
temp_video_path = temp_file.name
|
60 |
print('temp_video_path', temp_video_path)
|
61 |
-
export_to_video(output.frames
|
62 |
|
63 |
with open(temp_video_path, 'rb') as video_file:
|
64 |
video_binary = video_file.read()
|
|
|
48 |
output = pipe(
|
49 |
prompt=prompt,
|
50 |
negative_prompt="bad quality, worse quality, low resolution, blur",
|
51 |
+
num_frames=16,
|
52 |
guidance_scale=2.0,
|
53 |
num_inference_steps=6
|
54 |
)
|
|
|
58 |
with tempfile.NamedTemporaryFile(suffix='.mp4', delete=False) as temp_file:
|
59 |
temp_video_path = temp_file.name
|
60 |
print('temp_video_path', temp_video_path)
|
61 |
+
export_to_video(output.frames, temp_video_path)
|
62 |
|
63 |
with open(temp_video_path, 'rb') as video_file:
|
64 |
video_binary = video_file.read()
|