Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,10 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
transcription = pipeline("automatic-speech-recognition", model="facebook/wav2vec2-base-100h")
|
5 |
-
clasification = pipeline(
|
|
|
|
|
|
|
6 |
|
7 |
def audio_a_text(audio):
|
8 |
text = transcription(audio)["text"]
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
transcription = pipeline("automatic-speech-recognition", model="facebook/wav2vec2-base-100h")
|
5 |
+
clasification = pipeline(
|
6 |
+
"audio-classification",
|
7 |
+
model="anton-l/xtreme_s_xlsr_300m_minds14",
|
8 |
+
)
|
9 |
|
10 |
def audio_a_text(audio):
|
11 |
text = transcription(audio)["text"]
|