File size: 631 Bytes
dacb27b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3e64a2c
dacb27b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import gradio as gr
import replicate

def showAnimation(startingPrompt, endingPrompt):
    model = replicate.models.get("andreasjansson/stable-diffusion-animation")
    version = model.versions.get("ca1f5e306e5721e19c473e0d094e6603f0456fe759c10715fcd6c1b79242d4a5")
    output = version.predict(prompt_start=startingPrompt, prompt_end=endingPrompt)
    return output

# START OF PAGE
demo = gr.Interface(
        fn=showAnimation, 
        inputs=["text", "text"], 
        outputs="image",
        title = "Stable Diffusion Animation",
        description = "Text-to-animation",
        allow_flagging="never"
)

demo.launch()