ChatGLM-6B
ChatGLM-6B copied to clipboard
使用web_demo,firefox浏览器前端报错
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
但是在网络里面查看输出其实是有结果的,但显示不到前端而已,所以请问大佬们该怎么解决呢?
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
降级 gradio==3.40.0
解决了
好的,感谢,之前gradio版本是3.50.0
降级
gradio==3.40.0
解决了
有用!!!! 不过我始终安不上3.40.0安的是3.44.0
为了使用最新的gradio,只需要修改gr.Textbox(show_label=False, placeholder="Input..."
这行为user_input = gr.Textbox(show_label=False, placeholder="Input...", lines=10, container=False)
就一切正常了,不需要.style