THUDM / ChatGLM3

ChatGLM3 series: Open Bilingual Chat LLMs | 开源双语对话语言模型
Apache License 2.0
13.31k stars 1.55k forks source link

Streamlit 启动 composite_demo后页面加载报错 #1182

Closed wli173-ford closed 4 months ago

wli173-ford commented 4 months ago

Feature request / 功能建议

ModuleNotFoundError: No module named 'huggingface_hub.inference._text_generation'

File "/root/miniconda3/envs/chatglm3-demo/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script exec(code, module.dict) File "/usr/ai/ChatGLM3/composite_demo/main.py", line 10, in import demo_chat, demo_ci, demo_tool File "/usr/ai/ChatGLM3/composite_demo/demo_chat.py", line 4, in from client import get_client File "/usr/ai/ChatGLM3/composite_demo/client.py", line 9, in from huggingface_hub.inference._text_generation import TextGenerationStreamResponse, Token

Motivation / 动机

Your contribution / 您的贡献

zRzRzRzRzRzRzR commented 4 months ago

huggingface_hub 版本检查

SyloYamtao commented 4 months ago

(https://github.com/THUDM/ChatGLM3/issues/1074#issuecomment-2030113344) i have changed this item huggingface_hub from >=0.19.4 to ==0.19.4 in composite_demo/requirements.txt,and it works for me.

tanmx commented 4 months ago

(#1074 (comment)) i have changed this item huggingface_hub from >=0.19.4 to ==0.19.4 in composite_demo/requirements.txt,and it works for me.

works for me