ChatGLM-6B
ChatGLM-6B copied to clipboard
[BUG/Help] 网页ws里有报错信息,不展示返回的数据
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
终端没有任何报错信息,只有ws返回了一句 Expecting value: line 1 column 1 (char 0)
Expected Behavior
No response
Steps To Reproduce
运行web版
Environment
- OS:
- Python:
- Transformers:
- PyTorch:
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :
Anything else?
No response
请提供报错截图和你的环境信息
python版本3.10.8 torch版本'2.0.0+cu118' gradio版本3.21.0 transformers版本4.26.1
cli命令行运行是没有问题的,表现非常好
@szpnygo 我尝试使用以下命令成功运行起来了
demo.queue().launch(share=True, inbrowser=True, server_name="0.0.0.0", server_port=8000)
https://github.com/gradio-app/gradio/issues/3330
找到原因了,居然是因为开了代理。我关闭代理后,果然可以了
找了半天更改localURL的方式,感谢,it works!