Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,11 @@ import torch
|
|
10 |
from transformers import pipeline
|
11 |
|
12 |
# Initialize the ASR pipeline for Bulgarian
|
13 |
-
|
|
|
|
|
|
|
|
|
14 |
|
15 |
|
16 |
# ASR λ³ν ν¨μ (speech-to-text conversion)
|
|
|
10 |
from transformers import pipeline
|
11 |
|
12 |
# Initialize the ASR pipeline for Bulgarian
|
13 |
+
# Load model directly
|
14 |
+
from transformers import AutoProcessor, AutoModelForCTC
|
15 |
+
|
16 |
+
processor = AutoProcessor.from_pretrained("infinitejoy/wav2vec2-large-xls-r-300m-bulgarian")
|
17 |
+
model = AutoModelForCTC.from_pretrained("infinitejoy/wav2vec2-large-xls-r-300m-bulgarian")
|
18 |
|
19 |
|
20 |
# ASR λ³ν ν¨μ (speech-to-text conversion)
|