ChatGLM3 icon indicating copy to clipboard operation
ChatGLM3 copied to clipboard

WEB DEMO 对话框,模型回复的消息无法展示

Open cooltheobob opened this issue 2 years ago • 1 comments

System Info / 系統信息

  1. OS: CentOS7
  2. Python: 3.10
  3. GPU
==============NVSMI LOG==============

Timestamp                                 : Tue Dec  5 05:50:35 2023
Driver Version                            : 535.104.12
CUDA Version                              : 12.2

Attached GPUs                             : 1
GPU 00000000:00:1E.0
    Product Name                          : Tesla T4
  1. pip list
Package                 Version
----------------------- ---------
archspec                0.2.1
boltons                 23.0.0
Brotli                  1.0.9
certifi                 2023.7.22
cffi                    1.15.1
charset-normalizer      2.0.4
conda                   23.10.0
conda-content-trust     0.2.0
conda-libmamba-solver   23.11.1
conda-package-handling  2.2.0
conda_package_streaming 0.9.0
cryptography            41.0.3
idna                    3.4
jsonpatch               1.32
jsonpointer             2.1
libmambapy              1.5.3
packaging               23.1
pip                     23.3
pluggy                  1.0.0
pycosat                 0.6.6
pycparser               2.21
pyOpenSSL               23.2.0
PySocks                 1.7.1
requests                2.31.0
ruamel.yaml             0.17.21
setuptools              68.0.0
tqdm                    4.65.0
truststore              0.8.0
urllib3                 1.26.18
wheel                   0.41.2
zstandard               0.19.0

Who can help? / 谁可以帮助到您?

@abmfy

Information / 问题信息

  • [X] The official example scripts / 官方的示例脚本
  • [ ] My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

  1. 按照官方 README 执行
  2. 执行启动脚本
python web_demo.py
  1. 进入web聊天页面,输入 你好
  2. 看不到模型回复的消息
  3. 浏览器控制台有报错,报错信息如下:
dom.js:238 Uncaught (in promise) DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at T (http://10.0.1.10:8501/assets/index-a959df42.js:2:12787)
    at Au.i (http://10.0.1.10:8501/assets/index-a959df42.js:2:15665)
    at Au.p (http://10.0.1.10:8501/assets/index-a959df42.js:2:15716)
    at Object.p (http://10.0.1.10:8501/assets/StaticMarkdown-06312fb7.js:339:355)
    at Object.p (http://10.0.1.10:8501/assets/StaticMarkdown-06312fb7.js:339:611)
    at Ba (http://10.0.1.10:8501/assets/index-a959df42.js:5:1914)
    at zo (http://10.0.1.10:8501/assets/index-a959df42.js:5:1548)
T @ dom.js:238
i @ dom.js:1116
p @ dom.js:1127
p @ MarkdownCode.svelte:59
p @ MarkdownCode.svelte:63
Ba @ scheduler.js:119
zo @ scheduler.js:79
Promise.then (async)
Ro @ scheduler.js:20
Pa @ scheduler.js:26
(anonymous) @ Blocks.svelte:452
(anonymous) @ index.js:614
le @ index.js:614
R.onmessage @ index.js:566
10.0.1.10/:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

Expected behavior / 期待表现

  1. 看到模型回复的消息
  2. 聊天顺畅进行

cooltheobob avatar Dec 05 '23 05:12 cooltheobob

怎么没有看到graido版本,确定是3.39?

zRzRzRzRzRzRzR avatar Dec 05 '23 07:12 zRzRzRzRzRzRzR