Akariieieie commited on
Commit
91fe3dc
·
verified ·
1 Parent(s): d2f13e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,9 +9,9 @@ print("Initializing Hugging Face Space environment...")
9
  device = "cpu"
10
 
11
  print("Loading Whisper STT Model...")
12
- whisper_model = whisper.load_model("base", device=device)
13
 
14
- model_path = "Akariieieie/fine_tuned_dialectgov11"
15
  print(f"Loading custom NLLB model from {model_path}...")
16
  tokenizer = AutoTokenizer.from_pretrained(model_path)
17
  model = AutoModelForSeq2SeqLM.from_pretrained(model_path).to(device)
 
9
  device = "cpu"
10
 
11
  print("Loading Whisper STT Model...")
12
+ whisper_model = whisper.load_model("medium", device=device)
13
 
14
+ model_path = "Akariieieie/fine_tuned_dialectgov12"
15
  print(f"Loading custom NLLB model from {model_path}...")
16
  tokenizer = AutoTokenizer.from_pretrained(model_path)
17
  model = AutoModelForSeq2SeqLM.from_pretrained(model_path).to(device)