Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ from transformers import Wav2Vec2ForCTC, Wav2Vec2Tokenizer
|
|
4 |
import gradio as gr
|
5 |
from transformers import pipeline
|
6 |
import IPython.display as display
|
|
|
7 |
def speech_text(audio_file):
|
8 |
tokenizer = Wav2Vec2Tokenizer.from_pretrained("facebook/wav2vec2-base-960h")
|
9 |
model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-base-960h")
|
|
|
4 |
import gradio as gr
|
5 |
from transformers import pipeline
|
6 |
import IPython.display as display
|
7 |
+
import soundfile as sf
|
8 |
def speech_text(audio_file):
|
9 |
tokenizer = Wav2Vec2Tokenizer.from_pretrained("facebook/wav2vec2-base-960h")
|
10 |
model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-base-960h")
|