src.pages.home.callbacks ======================== .. py:module:: src.pages.home.callbacks Attributes ---------- .. autoapisummary:: src.pages.home.callbacks.logger Functions --------- .. autoapisummary:: src.pages.home.callbacks.update_selected_dataset src.pages.home.callbacks.scan_projects src.pages.home.callbacks.init_project src.pages.home.callbacks.gen_clips src.pages.home.callbacks.gen_tables src.pages.home.callbacks.gen_queue src.pages.home.callbacks.gen_embeddings src.pages.home.callbacks.update_options_project src.pages.home.callbacks.update_project_summary src.pages.home.callbacks.check_create src.pages.home.callbacks.toggle_collapse src.pages.home.callbacks.check_project_name src.pages.home.callbacks.check_audio_path src.pages.home.callbacks.check_embedding_model Module Contents --------------- .. py:data:: logger .. py:function:: update_selected_dataset(selected_dataset_name) .. py:function:: scan_projects() Scan the existing projects .. py:function:: init_project(project_name, audio_path, clip_duration, embedding_model) Initializes the project by generating clips, tables, queue, and embeddings. .. py:function:: gen_clips(project_name, audio_path, clip_duration) Generates audio clips for the project. .. py:function:: gen_tables(project_name) Generates the initial vocabulary and annotations files for the project. .. py:function:: gen_queue(project_name, n=5) Generates a queue of audio clips to be annotated. .. py:function:: gen_embeddings(project_name, embedding_model) Generates embeddings for the audio clips in the project. .. py:function:: update_options_project(project_value, project_create, brand, project_name, path_audio, embedding_model, data) .. py:function:: update_project_summary(dataset_name) .. py:function:: check_create(v1, v2, v3) .. py:function:: toggle_collapse(n1, n2, is_open) .. py:function:: check_project_name(value) .. py:function:: check_audio_path(value) .. py:function:: check_embedding_model(value)