Spaces:
Sleeping
Sleeping
Emily Witko commited on
Commit ·
e3d3c25
1
Parent(s): 8d0f7fd
update app
Browse files
app.py
CHANGED
|
@@ -6,28 +6,66 @@ actions = [
|
|
| 6 |
"Launch an enterprise tier for",
|
| 7 |
"Create a premium API for",
|
| 8 |
"Sell sponsorships on",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
]
|
| 10 |
|
| 11 |
things = [
|
| 12 |
"model cards with personality",
|
| 13 |
"leaderboards",
|
| 14 |
"Spaces with >100 likes",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
]
|
| 16 |
|
| 17 |
twists = [
|
|
|
|
|
|
|
|
|
|
| 18 |
"but pricing is based on vibes",
|
| 19 |
"and call it 'Pro Max Ultra'",
|
|
|
|
|
|
|
| 20 |
"but it's secretly very useful",
|
| 21 |
]
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
def generate_idea():
|
| 24 |
return f"{random.choice(actions)} {random.choice(things)} {random.choice(twists)}."
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
with gr.Blocks() as demo:
|
| 27 |
gr.Markdown("# 🤗 Hugging Face Monetization Generator")
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
|
| 33 |
demo.launch()
|
|
|
|
| 6 |
"Launch an enterprise tier for",
|
| 7 |
"Create a premium API for",
|
| 8 |
"Sell sponsorships on",
|
| 9 |
+
"Monetize",
|
| 10 |
+
"Introduce a marketplace for",
|
| 11 |
+
"Offer a paid subscription to",
|
| 12 |
+
"Bundle and sell",
|
| 13 |
]
|
| 14 |
|
| 15 |
things = [
|
| 16 |
"model cards with personality",
|
| 17 |
"leaderboards",
|
| 18 |
"Spaces with >100 likes",
|
| 19 |
+
"GPU time during peak chaos",
|
| 20 |
+
"fine-tuned niche models",
|
| 21 |
+
"open datasets",
|
| 22 |
+
"community badges",
|
| 23 |
+
"weird experimental demos",
|
| 24 |
]
|
| 25 |
|
| 26 |
twists = [
|
| 27 |
+
"but only on Tuesdays",
|
| 28 |
+
"with a leaderboard attached",
|
| 29 |
+
"and make it community governed",
|
| 30 |
"but pricing is based on vibes",
|
| 31 |
"and call it 'Pro Max Ultra'",
|
| 32 |
+
"with surprise features every week",
|
| 33 |
+
"and no one fully explains it",
|
| 34 |
"but it's secretly very useful",
|
| 35 |
]
|
| 36 |
|
| 37 |
+
worse_additions = [
|
| 38 |
+
"Also add a crypto token.",
|
| 39 |
+
"Now layer in AI agents.",
|
| 40 |
+
"Make the whole thing community governed.",
|
| 41 |
+
"Put it on-chain for no clear reason.",
|
| 42 |
+
"Add autonomous deal-closing agents.",
|
| 43 |
+
"Let token holders vote on the roadmap.",
|
| 44 |
+
"Turn it into a DAO-adjacent experiment.",
|
| 45 |
+
"Add an agent marketplace on top.",
|
| 46 |
+
]
|
| 47 |
+
|
| 48 |
def generate_idea():
|
| 49 |
return f"{random.choice(actions)} {random.choice(things)} {random.choice(twists)}."
|
| 50 |
|
| 51 |
+
def make_it_worse(current_idea):
|
| 52 |
+
if not current_idea or not current_idea.strip():
|
| 53 |
+
current_idea = generate_idea()
|
| 54 |
+
|
| 55 |
+
additions = random.sample(worse_additions, 3)
|
| 56 |
+
return f"{current_idea} {' '.join(additions)}"
|
| 57 |
+
|
| 58 |
with gr.Blocks() as demo:
|
| 59 |
gr.Markdown("# 🤗 Hugging Face Monetization Generator")
|
| 60 |
+
gr.Markdown("Generate a revenue strategy, then make it worse.")
|
| 61 |
+
|
| 62 |
+
output = gr.Textbox(label="Your next big idea", lines=6)
|
| 63 |
+
|
| 64 |
+
with gr.Row():
|
| 65 |
+
generate_btn = gr.Button("Generate idea")
|
| 66 |
+
worse_btn = gr.Button("Make it worse")
|
| 67 |
|
| 68 |
+
generate_btn.click(fn=generate_idea, inputs=None, outputs=output)
|
| 69 |
+
worse_btn.click(fn=make_it_worse, inputs=output, outputs=output)
|
| 70 |
|
| 71 |
demo.launch()
|