Skip to content

Force numpy 1.x.x #8

@bangoga

Description

@bangoga

I noticed that the current requirements of whisper encourages any version of numpy, hence it defaults to higher versions.

The model is compiled with numpy 1.x.x in mind. I would suggest changing the notebook to force it to be numpy 1.x.x or else anyone requesting transcriptions will be faced with errors

So we go from:

  !pip install --root-user-action=ignore git+https://github.com/openai/whisper.git@v20231117 openai==1.9.0 numpy scipy deepl pydub cohere ffmpeg-python torch==2.1.0 tensorflow-probability==0.23.0 typing-extensions==4.9.0

to:

  !pip install --root-user-action=ignore git+https://github.com/openai/whisper.git@v20231117 openai==1.9.0 numpy~=1.2 scipy deepl pydub cohere ffmpeg-python torch==2.1.0 tensorflow-probability==0.23.0 typing-extensions==4.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions