百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

text-to-banger

> 编程语言
开源

一个简单的 API,可以将用户提议的推文转换为真正的好内容。

100 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个简单的 API,可以将用户提议的推文转换为真正的好内容。

text-to-banger

A simple API converting a user's proposed tweet into a veritable banger.

To run the app locally

Clone the repo

gh repo clone effectiveaccelerationism/text-to-banger

Install and run the app

bash
cd webapp
npm install
npm start

The app will be running on http://localhost:3000

Run the OpenAI api server

Currently the app runs with an OpenAI API server, soon to be dismissed in favor of a custom finetuned model. To run the OpenAI API server, you need to have an OpenAI API key. You can get one here. Once you have your API key, create a file named .env in the apiserver directory and add the following line to it:

OPENAI_API_KEY=your-openai-key
OPENAI_MODEL_NAME=text-davinci-003

It's advisable to finetune a model by running the generate_finetuned_model.py script in the model directory.

Then, run the server with

bash
cd api
python -m venv env
pip install -r requirements.txt
source env/bin/activate # on Windows use `env\Scripts\activate`
python server.py

NOTE: You must have both the webapp and the apiserver running in two separate terminal instances to use the app.

Model TODOs

  • Get down a list of banger accounts
  • Script getting the last 100 text tweets from the account in the banger accounts list
  • Script filtering the tweets by a set likes/followers ratio
  • Script augmenting data rewriting the bangers in 10 boring ways through the OAI API
  • Script finetuning a GPT-3-turbo model on the augmented data
  • Llama2 GGML fine-tuned model

API TODOs

  • Create OAI API server
  • Add Custom API server with finetuned model

WebApp TODOs

  • Add dark mode and set it as default
  • Get BANGER OAI API prompt
  • Deploy webapp

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言