Skip to content

stong/tldw

Repository files navigation

Too Long; Didn't Watch!

image

How to use

Running locally is recommended because hosted version have strict rate limit, as it rely on residential proxy and OpenAI API which costs me money.

Deploying

Set the variables in .env:

OPENAI_API_KEY=sk-proj-xxxxxx...
PROXY_URL=https://user:[email protected]:8888

Variable PROXY_URL is optional but recommended for production deployments, recommend using a residential or LTE proxy.

Then:

docker-compose up -d

Local development

  • prepare .env file
  • python3 -m virtualenv venv ; source venv/bin/activate
  • pip install -r requirements.txt
  • launch backend python backend.py &
  • If needed, edit backend url in App.tsx
  • frontend setup cd youtube-summarizer ; yarn install ; yarn dev