Google Chrome extension with popup of Video Summary, Clickbait Rating, TL;DR of Comments on YouTube search page view.
Demo Video: https://youtu.be/CIYABA9aeCU
Ref to technical task (max 10-hours): todo
- frontend <-> backend interaction improve: e.g. frontend -> send video id (or id), then checking API if each part of summary is ready, ratio is ready, etc.
- send video ids to make backend preload all desirable info (
refresh-aheadcache-ahead), then get as soon as ready. - caching: {on API level, for data fetching concurrent process}
- add simple gridy arch: use different models (+ locally deployed) and return fisrt answer available (with e.g. asyncio.FIRST_COMPLETED)
First of all git clone and get your OpenAI API key, also note that to run backend you need docker & docker compose installed
-
Prepare env according to
.env.example
in deploy folder.
cd deploy
docker compose up --build
You could check that it is running by going to http://localhost:8000/docs
in your browser.
- Turn dev mode in browser.
- Go to manage Extensions, press
Load unpacked
and choose[chrome-extention](chrome-extention)
folder.
- # TODO: api could rely on user open token rather than on centralised token.
- tests
- add info about votes from comments to AI.
- youtube info fetchers consists of blocking code (not python async compatible)