Commit 966fad45 authored by Your Name's avatar Your Name

Fix UnboundLocalError for model_path in startup code

parent 803f2bb8
......@@ -3858,6 +3858,9 @@ def main():
# If faster-whisper failed (not installed or couldn't load), try whispercpp
if faster_whisper_failed:
# Initialize model_path
model_path = None
# Check if model is a GGUF file - whispercpp can handle those
model_is_gguf = model_to_use.endswith('.gguf') or (model_path and model_path.endswith('.gguf'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment