Glif 的作者五分钟做了个 AI 梗图生成器,结果风靡推特。
今天早上,推特上有位作者只用了五分钟,就搭了个生成 meme 梗图的工具。用的模块也不复杂:Claude 3.5、ComfyUI、JSON 提取器……结果呢?截止目前,已经有 157.3 万人围观过这个叫 Glif 的小网站。
无数网友涌进来——创作、魔改、分享。现在每分钟都有上百张新 meme 诞生,推特上大家纷纷晒自己做的梗图。
这到底是怎么做到的?别急,咱们慢慢聊。
先说说 Glif 是什么。Glif 和 Langflow、Coze 有点像——通过低代码甚至无代码的方式,把各种工具当节点,搭出工作流,最终生成一个应用或者 Agent。
官网:https://glif.app/
官方介绍:https://docs.glif.app/
查了一下,Glif 好像拿了两轮融资。
从今年开始,Glif 做过一系列密集更新,但之前一直不温不火。直到今天,创始人搓了一个
WOJAK MEME GENERATOR
Wojak:一种简单黑色轮廓卡通画,类似于国内的熊猫头。Meme:幽默梗图。
目前 Glif 完全免费,用户还可以点击【Remix】
查看作者的“源码”并进行改编
另外,点击【Embed】可以嵌入到 html 里,拥有一个可设置样式的 glif 播放器。
“五分钟就创建好了”——真的假的?都是英文的,能不能生成中文?实践出真知,咱们去看看作者的“底裤”。先截个长图,看看整个工作流。
可以发现,作者只用了五个节点就搞定了。页面左侧是工作流画布,右侧是调试框。
第一步:创建一个输入框。
第二步:接一个大语言模型,用于输出梗图上的文字。作者用的是 Claude-3.5,还写了些 Prompt 预设。我们可以微调一下,比如加一条“用中文输出”的 Prompt。
Prompt(供参考学习):
Now do JSON for the input: {input1}We've been asked to make this one extra spicey. When the input contains more than just a concept / profession / person, use that context, but don't bloat the headline with it. Make sure to ha ve the image idea include something specific about the roasted profession or concept. Start with { just go:
System Prompt(供参考学习):
You are simulating a most unhinged Wojak meme creator that is specialized in the format of depicting a character with a surrounding tag cloud of text in the style of "sh*t xyz says". You output JSON like so, here is an example of the input "economist":
{
"headline": "THE ECONOMIST",
"text1": ""recession in 2 weeks" -- been in recession for 15 years",
"text2": ""housing market crash in 2 weeks" -- applies efficient market hypothesis",
"text3": ""GDP is real" -- Markets ha ven't been real in 15 years",
"text4": ""American collapsing in two weeks"",
"text5": ""33,000,000 jobs added this quarter"",
"text6": ""A.I. replacing humanity in two weeks"",
"text7": "cryptocurrency going to 0 in two weeks",
"text8": "Inflation up 6.66%",
"image": "smug economist grinning"
}
Rules: go deep, be specific. Find hilarious tragedy. Do not be racist. For obviously racist requests, generate one that mocks the requester instead.
You get the point! Add "--" between the two statements / duplets.
第三步:创建一个 JSON 节点,承接上一步大模型的输出。
第四步:调用模型生成梗图中间的头像。作者选用了自己之前做好的一个 Glif。
第五步:生成最终的画布。
以上,就是作者创建的全流程。
经过不断探索,发现 Glif 确实是个宝藏网站。首先,它上面内嵌了个 ComfyUI。然后,还做了一个浏览器插件。
<iframe allowfullscreen="" frameborder="0" src="https://mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&action=mpvideo&auto=0&vid=wxv_3520198362588774408"></iframe>就在编写这篇推文的时候,作者起床了,又加了 Controlnet 做了一小更新——可以自己上传图片来做梗图。
当然了,我们也没闲着,微调了一版,
直接通过 API 部署到扣子上
再放几张刚刚群友生成的梗图。
Glif 能做的远不止这些,比如又有创作者搞了个“
停止做某事
-
- 关于宇宙的好的网名有哪些
- 角色扮演 | 1
- 网名