Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ from subtitle_manager import Subtitle
|
|
11 |
|
12 |
logging.basicConfig(level=logging.INFO)
|
13 |
last_model = None
|
|
|
14 |
|
15 |
def write_file(output_file,subtitle):
|
16 |
with open(output_file, 'w', encoding='utf-8') as f:
|
@@ -57,6 +58,7 @@ def create_pipe(model, flash):
|
|
57 |
def transcribe_webui_simple_progress(modelName, languageName, urlData, multipleFiles, microphoneData, task, flash,
|
58 |
chunk_length_s, batch_size, progress=gr.Progress()):
|
59 |
global last_model
|
|
|
60 |
|
61 |
progress(0, desc="Loading Audio..")
|
62 |
logging.info(f"urlData:{urlData}")
|
|
|
11 |
|
12 |
logging.basicConfig(level=logging.INFO)
|
13 |
last_model = None
|
14 |
+
pipe = None
|
15 |
|
16 |
def write_file(output_file,subtitle):
|
17 |
with open(output_file, 'w', encoding='utf-8') as f:
|
|
|
58 |
def transcribe_webui_simple_progress(modelName, languageName, urlData, multipleFiles, microphoneData, task, flash,
|
59 |
chunk_length_s, batch_size, progress=gr.Progress()):
|
60 |
global last_model
|
61 |
+
global pipe
|
62 |
|
63 |
progress(0, desc="Loading Audio..")
|
64 |
logging.info(f"urlData:{urlData}")
|