Spaces:
Runtime error
Runtime error
Feng
commited on
Commit
•
e9409f4
1
Parent(s):
b69bb6d
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,8 @@ from transformers import pipeline
|
|
9 |
speech_recognizer = pipeline("automatic-speech-recognition", model="facebook/wav2vec2-base-960h")
|
10 |
|
11 |
from datasets import load_dataset, Audio
|
12 |
-
|
|
|
13 |
dataset = load_dataset("lmms-lab/LMMs-Eval-Lite", "ai2d")
|
14 |
dataset = dataset.cast_column("audio", Audio(sampling_rate=speech_recognizer.feature_extractor.sampling_rate))
|
15 |
|
|
|
9 |
speech_recognizer = pipeline("automatic-speech-recognition", model="facebook/wav2vec2-base-960h")
|
10 |
|
11 |
from datasets import load_dataset, Audio
|
12 |
+
# dataset = load_dataset("PolyAI/minds14", name="en-US", split="train")
|
13 |
+
# dataset = load_dataset("beans", split="train")
|
14 |
dataset = load_dataset("lmms-lab/LMMs-Eval-Lite", "ai2d")
|
15 |
dataset = dataset.cast_column("audio", Audio(sampling_rate=speech_recognizer.feature_extractor.sampling_rate))
|
16 |
|