Coder Social home page Coder Social logo

tylunasli / chatglm-web-stream-demo Goto Github PK

View Code? Open in Web Editor NEW
90.0 2.0 13.0 243 KB

ChatGLM-6B HTTP流式解码API的Flask、FastAPI实现,以及开箱即用的Web页面。 a stream decoding demo of ChatGLM-6B using Flask or FastAPI, with web page out-of-the-box.

License: MIT License

Python 46.74% HTML 12.32% JavaScript 38.55% CSS 2.38%
chatbot chatglm chatgpt-api

chatglm-web-stream-demo's Issues

怎么启动这么慢

运行 python3 -u chatglm_service_fastapi.py --host 127.0.0.1 --port 7861 --quantize 4 --device 1,2,3
好几次卡在 starting server... 这一步。卡10分钟也没结果

EventSourceResponse

流式接口中EventSourceResponse不想return,想获取返回值需要怎么写

输入内容点击发送后报错

\AppData\Roaming\Python\Python310\site-packages\torch\nn\modules\module.py", line 1269, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'ChatGLMForConditionalGeneration' object has no attribute 'stream_chat'

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.