Spaces:
Runtime error
Runtime error
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' | |
if not os.path.exists(audio_dir): | |
os.makedirs(audio_dir) | |
if not os.path.exists(video_dir): | |
os.makedirs(video_dir) | |
if not os.path.exists(times_dir): | |
os.makedirs(times_dir) |