Skip to main content

#AI #GPTAI本地视频总结介绍感谢Daniel带来的项目

  1. #AI #GPT
    AI本地视频总结
    介绍

    感谢Daniel带来的项目https://github.com/StartHua/video_summarize 借助该项目,你可以上传视频通过prompt对视频内容经行总结输出

    使用

    依赖: python3.9及ffmpeg【安装请谷歌】

    下载项目后

    pip install -r requirements.txt

    Python3 main.py 运行即可

    注意:需要下载large-v2.pt模型放到model下!下载:https://www.123pan.com/s/9T6A-gRHxd.html 提取码:fUtg

    另在freeGpt.py中的源码我在MAC上测试是不通过的,修改后的代码∶

    from g4f import ChatCompletion, Provider


    class FreeGPT:
    def call(self, query: str):
    chat_completion = ChatCompletion.create(
    model="gpt-3.5-turbo",
    messages=[{"role": "user", "content": query}],
    provider="",
    # stream=True,
    )
    return True, chat_completion

    freeGPTMgr = FreeGPT()
    📡发布:https://noisevip.cn/17340.html
    📢关注频道:@quanshoulu
    💬频道社群:https://www.noisework.cn/qun/
    📬投稿bot:@noisewowbot
    📇搜索bot:@Efficiencysearchbot
    🎁访问主页: www.noisework.cn GitHub - StartHua/video_summarize: video_summarize(视频总结:上传视频通过prompt对视频内容经行总结输出)