Coder Social home page Coder Social logo

bilibilisummary's Introduction

Anurag's github stats
  • 👋 Hello, I am the Hammer Man. I have a general understanding of cryptography, machine learning, compiler theory, and computer graphics.
  • 👀 I am currently very interested in GPU programming, browser-side model optimization, and deployment.
  • 🌱 I am currently engaged in front-end plugin development work.
  • 💞️ Welcome to submit any PRs to my error-filled projects.
  • 📫 You can contact me through X, or follow me on GitHub to get the latest updates on my work.
  • 🌑 I code at midnight, please do not disturb me during this time.

  • 👋 你好,我是铁锤人。不学无术,了解点密码学,机器学习,编译原理和图形学
  • 👀 我目前对GPU编程,浏览器端模型优化和部署十分感兴趣
  • 🌱 我现在从事前端插件开发工作
  • 💞️ 欢迎给我错误百出的项目提任何PR
  • 📫 你可以通过X联系我,或者GitHub关注我,获得我的最新的进展
  • 🌑 我会在半夜时候编程,这个时候请别打扰我

bilibilisummary's People

Contributors

lxfater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bilibilisummary's Issues

依赖安装失败

node: 16.16.0 npm 8.11.0
"ai-bridge": "^1.0.3"
npm ERR! code ENOVERSIONS
npm ERR! No versions available for ai-bridge

能否支持YouTube

YouTube现有的插件似乎都是不带时间戳的,你这个插件带的时间戳功能特别好用。如果是YouTube视频本身带有章节的话,是不是可以分章节summary。

关于内部实现的一些问题

想咨询一下大佬,chatgpt是有输入长度的限制的,在处理b站长视频的时候,比如字幕可能有上万字,是怎么输入chatgpt的呢

添加Firefox支持

尝试自己转换了一下出错,问了chatgpt貌似需要修改一些api

这个错误是因为 Firefox 和 Chrome 在拓展插件的实现上存在一些差异,导致某些 API 的支持不同。其中 "/background/service_worker" 是 Chrome 所支持的,但并不被 Firefox 支持。换句话说,你的代码中使用了这个 API,所以在 Firefox 上运行时就会报错。

要解决这个问题,你需要找到替代品或者调整你的代码适应 Firefox 的 API。一种可能的解决方案是使用 Firefox 支持的 background scripts 代替 service worker。具体来说,你可以创建一个名为 background.js 的文件,并将其在 manifest.json 中声明为 background.scripts,像这样:

"background": {
  "scripts": ["background.js"]
}

然后在 background.js 中编写你需要的代码。请注意,Firefox 的 background scripts 与 Chrome 的 service worker 有许多不同之处,因此你需要仔细阅读文档以确保你的代码正确运行。

扩展程序无法正常使用

超级棒的ai落地应用,点赞就完事了!然而折腾了一会用不了呢...
根据dalao的安装教程已经把程序安装成功了,并且加入到了扩展栏中,但是在使用过程中出现了一些问题:
image
以为是chatgpt问题,然后重新登录了一次,不行
以为是浏览器问题,把edge换成了Chrome,也不行
是dalao没有把完整版放出来么,还是说是因为我某些设置没有做好呢,或者是说这个程序只是个demo,要想正常使用的话需要修改js代码呢,希望dalao有空的是帮忙解答!
image

关于getSmallSizeTranscripts的疑问或bug?

https://github.com/lxfater/BilibiliSummary/blob/3d1a67cbe8e96adba60672b778ce89644a43280d/src/prompt.ts#L84C95-L84C95
这行代码有个地方没想通,这段代码我的理解是将旧字幕项添加到结果中,但同时需要确保总字节长度不超过限制。如果添加旧字幕项会导致超出限制,则只添加该字幕项的一部分;如果不会超出限制,则完整添加该字幕项。
比如我们假设以下参数:
lastByteLength: 1000
nextTextByteLength: 300
byteLimit: 1000
也就是说这时候文本正好达到限制长度,应该不截取任何长度到resultData中
但实际计算确是
计算超出的字节数:
1000+300−1000=300
计算超出比率:
overRate=300/300=1
const chunkedText = obj.text.substring(0, Math.floor(obj.text.length * overRate));
这不就变成了把这一段文本都放到resultdata中吗
不知道是否是哪里理解错了

建议

1.支持使用自己的OpenAI API,而不是在另一个页面登录chatgpt账号。
2.有打包好的crx文件就更方便了。

辛苦了。

如何获得更多细节

目前使用我的chatgpt3.5key生成,别的都是默认设置
点击总结视频内容时只生成每几分钟内容的主题,但不是结论
都是类似"介绍了XX",但是这个XX具体是啥,我希望它能列几个点
假设一个视频是一本没有章节的书,我需要总结的不是章节标题,而是每个章节的结论
请问如何修改参数达到我想要的效果?
image

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.