Skip to content

web_ui startup failed: ImportError: cannot import name 'cached_download' from 'huggingface_hub' #516

Description

@ipc-robot

Describe the bug
pydoc.ErrorDuringImport: problem in cosyvoice.flow.flow_matching - ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/home/ipc1/miniconda3/envs/cosyvoice/lib/python3.8/site-packages/huggingface_hub/init.py)

To Reproduce
Steps to reproduce the behavior:

cd CosyVoice
python3 webui.py --port 50000 --model_dir pretrained_models/CosyVoice-300M-Instruct

Expected behavior
Should launch a web interface as described in the documentation, but it does not!!!

Desktop (please complete the following information):

  • OS: [ubuntu 18.04 LTS]

I use pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com to install all requirements.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions