Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
| 13 |
|
| 14 |
-
model_path = "Akariieieie/
|
| 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)
|