Sakil commited on
Commit
7b3323f
β€’
1 Parent(s): 6fe5e68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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")