StratGenerator / app.py
Emily Witko
update app
e3d3c25
import random
import gradio as gr
actions = [
"Charge $5/month for",
"Launch an enterprise tier for",
"Create a premium API for",
"Sell sponsorships on",
"Monetize",
"Introduce a marketplace for",
"Offer a paid subscription to",
"Bundle and sell",
]
things = [
"model cards with personality",
"leaderboards",
"Spaces with >100 likes",
"GPU time during peak chaos",
"fine-tuned niche models",
"open datasets",
"community badges",
"weird experimental demos",
]
twists = [
"but only on Tuesdays",
"with a leaderboard attached",
"and make it community governed",
"but pricing is based on vibes",
"and call it 'Pro Max Ultra'",
"with surprise features every week",
"and no one fully explains it",
"but it's secretly very useful",
]
worse_additions = [
"Also add a crypto token.",
"Now layer in AI agents.",
"Make the whole thing community governed.",
"Put it on-chain for no clear reason.",
"Add autonomous deal-closing agents.",
"Let token holders vote on the roadmap.",
"Turn it into a DAO-adjacent experiment.",
"Add an agent marketplace on top.",
]
def generate_idea():
return f"{random.choice(actions)} {random.choice(things)} {random.choice(twists)}."
def make_it_worse(current_idea):
if not current_idea or not current_idea.strip():
current_idea = generate_idea()
additions = random.sample(worse_additions, 3)
return f"{current_idea} {' '.join(additions)}"
with gr.Blocks() as demo:
gr.Markdown("# 🤗 Hugging Face Monetization Generator")
gr.Markdown("Generate a revenue strategy, then make it worse.")
output = gr.Textbox(label="Your next big idea", lines=6)
with gr.Row():
generate_btn = gr.Button("Generate idea")
worse_btn = gr.Button("Make it worse")
generate_btn.click(fn=generate_idea, inputs=None, outputs=output)
worse_btn.click(fn=make_it_worse, inputs=output, outputs=output)
demo.launch()