Spaces:
Runtime error
Runtime error
Commit
·
7128a95
1
Parent(s):
f4e5887
fix:wrong thai language model
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
import numpy as np
|
4 |
|
5 |
-
model_name = "
|
6 |
transcriber = pipeline("automatic-speech-recognition", model=model_name)
|
7 |
|
8 |
def transcribe(audio):
|
|
|
2 |
from transformers import pipeline
|
3 |
import numpy as np
|
4 |
|
5 |
+
model_name = "biodatlab/whisper-th-medium-combined"
|
6 |
transcriber = pipeline("automatic-speech-recognition", model=model_name)
|
7 |
|
8 |
def transcribe(audio):
|