|
|
import gradio as gr |
|
|
|
|
|
def generate_quote_video(niche, style): |
|
|
|
|
|
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() |
|
|
|