Update subgen.py
This commit is contained in:
@@ -297,7 +297,8 @@ def gen_subtitles(file_path: str, transcribe_or_translate_str: str, front=True)
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error processing or transcribing {file_path}: {e}")
|
print(f"Error processing or transcribing {file_path}: {e}")
|
||||||
finally:
|
finally:
|
||||||
files_to_transcribe.remove(file_path)
|
if file_path in files_to_transcribe:
|
||||||
|
files_to_transcribe.remove(file_path)
|
||||||
delete_model()
|
delete_model()
|
||||||
|
|
||||||
def get_file_name_without_extension(file_path):
|
def get_file_name_without_extension(file_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user