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 5, 2024
1 parent fe004d3 commit ff8b465
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 @@ -53,6 +53,7 @@ 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 @@ -485,7 +486,6 @@ def transcribe_existing():
print("Finished searching and queueing files for transcription")

if transcribe_folders:
transcribe_folders = transcribe_folders.split("|")
transcribe_existing()

whisper_languages = {
Expand Down

0 comments on commit ff8b465

Please sign in to comment.