samisnotmyname's picture
Update app.py
33ed452
raw
history blame contribute delete
No virus
1.55 kB
import gradio as gr
def prompt(topic_name, link, writing_style, age):
return f"Using a {writing_style} writing style and targeting an audience of age between 18 to {age}, using this link {link} and create Instagram carousel content on {topic_name} with the following specifications: \nTitle: Choose an attention-grabbing title for your carousel consisting of 4 to 5 words and 25 characters maximum and do not add more than 8 character words. \nSubtopics: \n1. Subtopic: Brief heading (2-4 words) \nExplanation: explain the point in 50 to 60 words. \n2. Subtopic: Brief heading (2-4 words) \nExplanation: explain the point in 50 to 60 words. \n3. Subtopic: Brief heading (2-4 words) \nExplanation: explain the point in 50 to 60 words. \n4. Subtopic: Brief heading (2-4 words) \nExplanation: explain the point in 50 to 60 words. \n5. Subtopic: Brief heading (2-4 words) \nExplanation: explain the point in 50 to 60 words."
inputs = [
gr.inputs.Textbox(label='Topic Name'),
gr.inputs.Textbox(label='Link'),
gr.inputs.Dropdown(["Conversational", "Bold and Punchy", "Inspirational", "Storytelling", "Playful and Humorous", "Descriptive and Visual", "Informative and Educational", "Minimalist ", "Trendy and Pop Culture ", "Trendy and Pop Culture", "Aspirational Lifestyle"], label='Writing Style'),
gr.inputs.Slider(18, 50 ,step=1, label='Targeting audience of age between')
]
output = gr.outputs.Textbox()
gr.Interface(fn=prompt, inputs=inputs, outputs=output, title='Instagram Carousel Prompt Generator').launch(inline=False)