INNER CODE UNIT · Python

create_gradio_interface

OpenVGLab/OmniLottie · app.py:743

def create_gradio_interface():

    with gr.Blocks(title="OmniLottie Demo Page", theme=gr.themes.Soft()) as demo:
        gr.Markdown("# 🎨 OmniLottie Demo Page")
        gr.Markdown("Offical Demo Page of OmniLottie")
        gr.Markdown("Generate Lottie animations from text, images, or videos")

        with gr.Tabs() as tabs:
            with gr.Tab("📝 Text-to-Lottie"):
                gr.Markdown("""
                ### 💡 Prompt Tips for Better Results

                **Good prompts should describe:**
                1. **Main Object**: What is being animated (e.g., "a blue bird", "a yellow folder icon", "an orange piggy bank")
                2. **Motion Pattern**: How it moves (e.g., "appearing, pulsing while sliding", "fading in, floating toward", "bouncing up and down")
                3. **Direction**: Where it moves (e.g., "downward", "toward the top-left", "back to its start")
                4. **Loop Behavior**: How it repeats (e.g., "repeating seamlessly", "looping smoothly", "repeating continuously")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…