Update subgen.py
This commit is contained in:
@@ -53,6 +53,7 @@ transcribe_or_translate = os.getenv('TRANSCRIBE_OR_TRANSLATE', 'translate')
|
|||||||
compute_type = os.getenv('COMPUTE_TYPE', 'auto')
|
compute_type = os.getenv('COMPUTE_TYPE', 'auto')
|
||||||
if transcribe_device == "gpu":
|
if transcribe_device == "gpu":
|
||||||
transcribe_device = "cuda"
|
transcribe_device = "cuda"
|
||||||
|
transcribe_folders = transcribe_folders.split("|")
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
model = None
|
model = None
|
||||||
@@ -485,7 +486,6 @@ def transcribe_existing():
|
|||||||
print("Finished searching and queueing files for transcription")
|
print("Finished searching and queueing files for transcription")
|
||||||
|
|
||||||
if transcribe_folders:
|
if transcribe_folders:
|
||||||
transcribe_folders = transcribe_folders.split("|")
|
|
||||||
transcribe_existing()
|
transcribe_existing()
|
||||||
|
|
||||||
whisper_languages = {
|
whisper_languages = {
|
||||||
|
|||||||
Reference in New Issue
Block a user