Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
from transformers import AutoProcessor, AutoModelForCTC
|
4 |
-
import soundfile as sf #
|
5 |
|
6 |
# Load the processor and model directly for Bulgarian ASR
|
7 |
processor = AutoProcessor.from_pretrained("infinitejoy/wav2vec2-large-xls-r-300m-bulgarian")
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
from transformers import AutoProcessor, AutoModelForCTC
|
4 |
+
import soundfile as sf # For handling audio input
|
5 |
|
6 |
# Load the processor and model directly for Bulgarian ASR
|
7 |
processor = AutoProcessor.from_pretrained("infinitejoy/wav2vec2-large-xls-r-300m-bulgarian")
|