Traceback (most recent call last):
File "/miniconda3/envs/chatglm/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
exec(code, module.dict)
File "/Downloads/projects/ChatGLM3/composite_demo/main.py", line 10, in
import demo_chat, demo_ci, demo_tool
File "/Downloads/projects/ChatGLM3/composite_demo/demo_chat.py", line 4, in
from client import get_client
File "/Downloads/projects/ChatGLM3/composite_demo/client.py", line 9, in
from huggingface_hub.inference._text_generation import TextGenerationStreamResponse, Token
ModuleNotFoundError: No module named 'huggingface_hub.inference._text_generation'
System Info / 系統信息
Who can help? / 谁可以帮助到您?
Information / 问题信息
Reproduction / 复现过程
执行综合demo就会报错
Expected behavior / 期待表现
Traceback (most recent call last): File "/miniconda3/envs/chatglm/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script exec(code, module.dict) File "/Downloads/projects/ChatGLM3/composite_demo/main.py", line 10, in
import demo_chat, demo_ci, demo_tool
File "/Downloads/projects/ChatGLM3/composite_demo/demo_chat.py", line 4, in
from client import get_client
File "/Downloads/projects/ChatGLM3/composite_demo/client.py", line 9, in
from huggingface_hub.inference._text_generation import TextGenerationStreamResponse, Token
ModuleNotFoundError: No module named 'huggingface_hub.inference._text_generation'