Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
|
|
3 |
import torch
|
4 |
import soundfile as sf
|
5 |
|
6 |
-
# Load the
|
7 |
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-large-xlsr-53")
|
8 |
model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-large-xlsr-53")
|
9 |
|
@@ -35,3 +35,4 @@ iface = gr.Interface(fn=transcribe_audio,
|
|
35 |
description="Upload an audio file for transcription using Wav2Vec2 model.")
|
36 |
|
37 |
iface.launch()
|
|
|
|
3 |
import torch
|
4 |
import soundfile as sf
|
5 |
|
6 |
+
# Load the Wav2Vec2Processor and model correctly
|
7 |
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-large-xlsr-53")
|
8 |
model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-large-xlsr-53")
|
9 |
|
|
|
35 |
description="Upload an audio file for transcription using Wav2Vec2 model.")
|
36 |
|
37 |
iface.launch()
|
38 |
+
|