Spaces:
Sleeping
Sleeping
Commit
·
177ad11
1
Parent(s):
b004a55
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import WhisperProcessor, WhisperForConditionalGeneration
|
|
3 |
import gradio as gr
|
4 |
|
5 |
model = WhisperForConditionalGeneration.from_pretrained("MaximilianChen/Casper")
|
6 |
-
processor = WhisperProcessor.from_pretrained(
|
7 |
asr = pipeline("automatic-speech-recognition", model=model, pprocessor=processor)
|
8 |
|
9 |
def transcribe_audio(mic=None, file=None):
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
model = WhisperForConditionalGeneration.from_pretrained("MaximilianChen/Casper")
|
6 |
+
processor = WhisperProcessor.from_pretrained("MaximilianChen/Casper", language='catalan', task='transcribe')
|
7 |
asr = pipeline("automatic-speech-recognition", model=model, pprocessor=processor)
|
8 |
|
9 |
def transcribe_audio(mic=None, file=None):
|