LittleLirow commited on
Commit
7fab996
1 Parent(s): 0af4580

Add animation file

Browse files
Files changed (1) hide show
  1. animation.py +14 -0
animation.py CHANGED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import replicate
3
+
4
+ def story2video(story_text, story_frames, auth_replicate):
5
+ os.environ["REPLICATE_API_TOKEN"] = auth_replicate
6
+
7
+ output = replicate.run(
8
+ "deforum/deforum_stable_diffusion:e22e77495f2fb83c34d5fae2ad8ab63c0a87b6b573b6208e1535b23b89ea66d6",
9
+ input={"max_frames": story_frames,
10
+ "model_checkpoint": "Protogen_V2.2.ckpt","animation_prompts": story_text,
11
+ "fps": 10
12
+ }
13
+ )
14
+ return output