File size: 791 Bytes
fa0aa6d
 
 
 
 
 
 
 
 
 
4a7b364
fa0aa6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
import sys
import gradio as gr
import logging

os.makedirs("outputs", exist_ok=True)
sys.path.insert(0, ".")

def generate(prompt, length):
    logging.warning("NOT generating per the prompt [TODO], just returning a denoising gif.")
    result_path = "media/denoising_grab_model.gif"
    return result_path


demo = gr.Interface(
    fn=generate,
    inputs=["text", gr.Slider(5, 30, value=10)],
    examples=[
        ["happily flying airplane", 10],
    ],
    outputs="image",
    title="COMING SOON: Text2EMotionDiffuse Demo. Currently: shows denoising gif for any prompt.",
    description="COMING SOON, SPACE NOT CURRENTLY CONFIGURED TO HANDLE PROMPTS, but please Github: https://github.com/ellemcfarlane/Text2EMotionDiffuse",
)

if __name__ == "__main__":
    demo.launch()