ChatGLM-6B icon indicating copy to clipboard operation
ChatGLM-6B copied to clipboard

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

Open PoisonousBromineChan opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

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

PoisonousBromineChan avatar Dec 14 '23 02:12 PoisonousBromineChan

降级 gradio==3.40.0 解决了

hysramp avatar Dec 18 '23 05:12 hysramp

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

PoisonousBromineChan avatar Dec 19 '23 00:12 PoisonousBromineChan

降级 gradio==3.40.0 解决了

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

maxh2018 avatar Dec 24 '23 04:12 maxh2018

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

inorixu avatar Apr 29 '24 13:04 inorixu