ladybug11's picture
Add proper UI for quote video generator
8a0d505
raw
history blame
1.97 kB
import gradio as gr
def generate_quote_video(niche, style):
# Placeholder for now - we'll build this next
return f"Generating {style} {niche} quote video... (Coming soon!)"
with gr.Blocks(title="AIQuoteClipGenerator", theme=gr.themes.Soft()) as demo:
gr.Markdown("""
# 🎬 AIQuoteClipGenerator
### Automated Quote Videos for Instagram & TikTok
Generate aesthetic quote videos in seconds with AI
""")
with gr.Row():
with gr.Column():
niche = gr.Dropdown(
choices=[
"Motivation",
"Business/Entrepreneurship",
"Fitness",
"Mindfulness",
"Stoicism",
"Leadership",
"Love & Relationships"
],
label="πŸ“‚ Select Niche",
value="Motivation"
)
style = gr.Dropdown(
choices=[
"Cinematic",
"Nature",
"Urban",
"Minimal",
"Abstract"
],
label="🎨 Visual Style",
value="Cinematic"
)
generate_btn = gr.Button("✨ Generate Video", variant="primary", size="lg")
with gr.Column():
output = gr.Textbox(label="πŸ“€ Status", lines=3)
video_output = gr.Video(label="πŸŽ₯ Generated Video")
gr.Markdown("""
---
### πŸš€ How It Works
1. **Select your niche** - Choose the type of content
2. **Pick a style** - Choose visual aesthetic
3. **Generate** - AI creates quote + video + overlay
4. **Download** - Ready to post!
*Built for MCP 1st Birthday Hackathon*
""")
generate_btn.click(
generate_quote_video,
inputs=[niche, style],
outputs=output
)
demo.launch()