Spaces:
Runtime error
Runtime error
Commit
·
f4e5887
1
Parent(s):
9836cdb
feat:thai language
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
import numpy as np
|
4 |
|
5 |
-
|
|
|
6 |
|
7 |
def transcribe(audio):
|
8 |
sr, y = audio
|
|
|
2 |
from transformers import pipeline
|
3 |
import numpy as np
|
4 |
|
5 |
+
model_name = "airesearch/wav2vec2-large-xlsr-53-th"
|
6 |
+
transcriber = pipeline("automatic-speech-recognition", model=model_name)
|
7 |
|
8 |
def transcribe(audio):
|
9 |
sr, y = audio
|