Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ model = Wav2Vec2ForCTC.from_pretrained(model_name, use_auth_token=token_key)
|
|
20 |
processor = Wav2Vec2ProcessorWithLM.from_pretrained(model_name, use_auth_token=token_key)
|
21 |
|
22 |
|
23 |
-
|
24 |
|
25 |
def load_data(input_file):
|
26 |
|
|
|
20 |
processor = Wav2Vec2ProcessorWithLM.from_pretrained(model_name, use_auth_token=token_key)
|
21 |
|
22 |
|
23 |
+
pipe = pipeline("automatic-speech-recognition", model=model, tokenizer=tokenizer, feature_extractor=processor.feature_extractor, decoder=processor.decoder, use_auth_token=token_key)
|
24 |
|
25 |
def load_data(input_file):
|
26 |
|