THUDM / ChatGLM-6B

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

python web_demo.py cannot see the answer,but streamlit can #1403

Closed zhanghui-china closed 9 months ago

zhanghui-china commented 9 months ago

Is there an existing issue for this?

Current Behavior

when i run python web_demo.py, in explorer, I can only see the question ,but cannot see the answer when i change to run streamlit run web_demo2.py, I can see the question and the answer.

Expected Behavior

No response

Steps To Reproduce

python web_demo.py image

streamlit run web_demo2.py

image

Environment

- OS:windows 11
- Python:3.8 conda 
- Transformers:4.26.1
- PyTorch:1.11
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :True

Anything else?

No response

SSQiana commented 9 months ago

I also had this problem

Daming-wang commented 9 months ago

downgrade your gradio version to 3.44.x

zhanghui-china commented 9 months ago

downgrade your gradio version to 3.44.x

this is the answer。