Skip to content

Error starting project from scratch: models/ folder must be manually created #1

@RainbowRivey

Description

@RainbowRivey

model.py:22 open() does not create folders automatically, so model_path must be created manually before starting.

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/workspace/tohyve-services/automatic_speech_recognition/main.py", line 20, in <module>
    pipe, MODEL_NAME = init_model()
  File "/workspace/tohyve-services/automatic_speech_recognition/model.py", line 22, in init_model
    pickle.dump(pipe, open(model_path, 'wb'))
FileNotFoundError: [Errno 2] No such file or directory: 'models/whisper-medium.pkl'

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