From 794b00b00f346ea3dcaa6b5f74aaac49d9aa5700 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:00:29 -0600 Subject: [PATCH] Update subgen.py --- subgen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subgen.py b/subgen.py index a81bc9b..70b2e4c 100644 --- a/subgen.py +++ b/subgen.py @@ -42,7 +42,7 @@ def get_env_variables_from_file(filename): print(f"File {filename} not found. Using default values.") return env_vars -def set_env_variables_from_file(filename): +def set_env_variables(filename): try: with open(filename, 'r') as file: for line in file: @@ -96,7 +96,7 @@ def update_env_variables(): if transcribe_device == "gpu": transcribe_device = "cuda" - set_env_variables_from_file('subgen.env') + set_env_variables('subgen.env') update_env_variables() @@ -232,7 +232,7 @@ def form_get(): html_content += f"" html_content += "
" else: - html_content += f"" + html_content += f"" html_content += "
" return html_content