Spaces:
Runtime error
Runtime error
import os | |
current_working_directory = os.getcwd() | |
current_input_file = "" | |
def get_title(): | |
return os.path.basename(current_input_file) | |
def get_audio_file(): | |
return f"{current_working_directory}/input_{get_title()}.wav" | |
def get_transcribe_file(): | |
return f"{current_working_directory}/transcribe_{get_title()}.txt" | |
def get_subtitle_file(): | |
return f"{current_working_directory}/subtitle_{get_title()}.srt" | |
def get_transcribe_adjusted_file(): | |
return f"{current_working_directory}/transcribe_adjusted_{get_title()}.txt" | |
def get_subtitle_adjusted_file(): | |
return f"{current_working_directory}/subtitle_adjusted_{get_title()}.srt" | |
def get_video_subtitle_file(): | |
return f"{current_working_directory}/output_{get_title()}.mp4" | |
def get_sample_groups_json(): | |
return f"{current_working_directory}/sample_groups_{get_title()}.json" | |
def get_speaker_groups_json(): | |
return f"{current_working_directory}/speaker_groups_{get_title()}.json" | |
start_time_for_adjustment = "00:00:00" | |
end_time_for_adjustment = "01:00:00" | |