Skip to content

Commit

Permalink
Update subgen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Feb 6, 2024
1 parent 547691b commit 6259bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subgen/subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def convert_to_bool(in_bool):
compute_type = os.getenv('COMPUTE_TYPE', 'auto')
if transcribe_device == "gpu":
transcribe_device = "cuda"
transcribe_folders = transcribe_folders.split("|")

app = FastAPI()
model = None
Expand Down Expand Up @@ -476,6 +475,7 @@ def path_mapping(fullpath):
return fullpath

def transcribe_existing():
transcribe_folders = transcribe_folders.split("|")
print("Starting to search folders to see if we need to create subtitles.")
logging.debug("The folders are:")
for path in transcribe_folders:
Expand Down

0 comments on commit 6259bd8

Please sign in to comment.