Giter Site home page Giter Site logo

mthli / better-youtube-summary-server Goto Github PK

View Code? Open in Web Editor NEW
199.0 5.0 36.0 280 KB

Literally Better YouTube Summary ๐ŸŽฏ

Home Page: https://chromewebstore.google.com/detail/better-youtube-summary/gobfmldfaojjoanejhccieilnmglclba

License: GNU Affero General Public License v3.0

Python 100.00%
openai summary youtube

better-youtube-summary-server's Issues

Might sometimes wrongly output in English

Consider this prompt:

def generate_multi_chapters_example_messages_for_16k(lang: str) -> list[Message]:
system_prompt = _GENERATE_MULTI_CHAPTERS_SYSTEM_PROMPT.format(lang=lang)
system_message = build_message(Role.SYSTEM, system_prompt)
user_message = build_message(Role.USER, _GENERATE_MULTI_CHAPTERS_USER_MESSAGE_FOR_16K) # nopep8.
assistant_message = build_message(Role.ASSISTANT, _GENERATE_MULTI_CHAPTERS_ASSISTANT_MESSAGE_FOR_16K) # nopep8.
return [system_message, user_message, assistant_message]

It's wrong when the language is different from English:

System: output summary in language "es"
user: <transcript>
assistant: <summary in "en">

We give the wrong example of the assistant's response where it disobeys the language direction, so it might disobey in when it gets output for the actual transcript.

I think you can try to reproduce it on any video that doesn't have chapters beforehand and is in not-English.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.