THUDM / ChatGLM-6B

ChatGLM-6B: An Open Bilingual Dialogue Language Model | 开源双语对话语言模型
Apache License 2.0
40.47k stars 5.19k forks source link

使用web_demo,firefox浏览器前端报错 #1436

Open PoisonousBromineChan opened 9 months ago

PoisonousBromineChan commented 9 months ago

Is there an existing issue for this?

Current Behavior

Uncaught (in promise) DOMException: Node.insertBefore: Child to insert before is not a child of this node 290381985-e5f9f5db-1667-4804-a12d-39cfc1f0a56c 但是在网络里面查看输出其实是有结果的,但显示不到前端而已,所以请问大佬们该怎么解决呢? 290382535-0492baed-cd93-430b-8eaf-aec469fd523d

Expected Behavior

No response

Steps To Reproduce

conda activate chatglm python web_demo.py

Environment

- OS:win11
- Python:3.10
- Transformers:4.27
- PyTorch:cuda12.2
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :true

Anything else?

No response

hysramp commented 9 months ago

降级 gradio==3.40.0 解决了

PoisonousBromineChan commented 9 months ago

好的,感谢,之前gradio版本是3.50.0

maxh2018 commented 9 months ago

降级 gradio==3.40.0 解决了

有用!!!! 不过我始终安不上3.40.0安的是3.44.0

inorixu commented 5 months ago

为了使用最新的gradio,只需要修改gr.Textbox(show_label=False, placeholder="Input..."这行为user_input = gr.Textbox(show_label=False, placeholder="Input...", lines=10, container=False)就一切正常了,不需要.style