|
@ -11,7 +11,7 @@ def create_repository(project) -> repositories.BaseRepository: |
|
|
SEQUENCE_LABELING: repositories.SequenceLabelingRepository, |
|
|
SEQUENCE_LABELING: repositories.SequenceLabelingRepository, |
|
|
SEQ2SEQ: repositories.Seq2seqRepository, |
|
|
SEQ2SEQ: repositories.Seq2seqRepository, |
|
|
IMAGE_CLASSIFICATION: repositories.FileRepository, |
|
|
IMAGE_CLASSIFICATION: repositories.FileRepository, |
|
|
SPEECH2TEXT: repositories.FileRepository, |
|
|
|
|
|
|
|
|
SPEECH2TEXT: repositories.Speech2TextRepository, |
|
|
} |
|
|
} |
|
|
if project.project_type not in mapping: |
|
|
if project.project_type not in mapping: |
|
|
ValueError(f'Invalid project type: {project.project_type}') |
|
|
ValueError(f'Invalid project type: {project.project_type}') |
|
|