import gradio as gr import os def make_invisible(): """ Makes visible a row """ return gr.Row.update(visible=False) def make_visible(): """ Makes visibles a rows """ return gr.Row.update(visible=True) def create_folders(): """ Creates 'audios' and 'videos' directories if they do not exist """ audio_dir = './audios' video_dir = './videos' times_dir = './csv_times' os.makedirs(audio_dir, exist_ok=True) os.makedirs(video_dir, exist_ok=True) os.makedirs(times_dir, exist_ok=True)