src.pages.home.callbacks

Attributes

logger

Functions

update_selected_dataset(selected_dataset_name)

scan_projects()

Scan the existing projects

init_project(project_name, audio_path, clip_duration, ...)

Initializes the project by generating clips, tables, queue, and embeddings.

gen_clips(project_name, audio_path, clip_duration)

Generates audio clips for the project.

gen_tables(project_name)

Generates the initial vocabulary and annotations files for the project.

gen_queue(project_name[, n])

Generates a queue of audio clips to be annotated.

gen_embeddings(project_name, embedding_model)

Generates embeddings for the audio clips in the project.

update_options_project(project_value, project_create, ...)

update_project_summary(dataset_name)

check_create(v1, v2, v3)

toggle_collapse(n1, n2, is_open)

check_project_name(value)

check_audio_path(value)

check_embedding_model(value)

Module Contents

src.pages.home.callbacks.logger
src.pages.home.callbacks.update_selected_dataset(selected_dataset_name)
src.pages.home.callbacks.scan_projects()

Scan the existing projects

src.pages.home.callbacks.init_project(project_name, audio_path, clip_duration, embedding_model)

Initializes the project by generating clips, tables, queue, and embeddings.

src.pages.home.callbacks.gen_clips(project_name, audio_path, clip_duration)

Generates audio clips for the project.

src.pages.home.callbacks.gen_tables(project_name)

Generates the initial vocabulary and annotations files for the project.

src.pages.home.callbacks.gen_queue(project_name, n=5)

Generates a queue of audio clips to be annotated.

src.pages.home.callbacks.gen_embeddings(project_name, embedding_model)

Generates embeddings for the audio clips in the project.

src.pages.home.callbacks.update_options_project(project_value, project_create, brand, project_name, path_audio, embedding_model, data)
src.pages.home.callbacks.update_project_summary(dataset_name)
src.pages.home.callbacks.check_create(v1, v2, v3)
src.pages.home.callbacks.toggle_collapse(n1, n2, is_open)
src.pages.home.callbacks.check_project_name(value)
src.pages.home.callbacks.check_audio_path(value)
src.pages.home.callbacks.check_embedding_model(value)